zorigitano / multipage-webpack-plugin

A plugin that makes handling templates and asset distribution for multi-page applications using webpack trivial
Apache License 2.0
170 stars 15 forks source link

Need to set package main for dist for usage. #25

Open TheLarkInn opened 7 years ago

TheLarkInn commented 7 years ago

We need to set main correctly.

> multipage-example@1.0.0 build /Users/req88847/Code/@webpack-examples/vanilla/multipage-example
> webpack --progress --color --verbose

module.js:472
    throw err;
    ^

Error: Cannot find module 'multipage-webpack-plugin'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/req88847/Code/@webpack-examples/vanilla/multipage-example/webpack.config.j
s:2:32)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)