jaketrent / html-webpack-template

a better default template for html-webpack-plugin
MIT License
830 stars 139 forks source link

correctly resolve for babel-loader in example #13

Closed trippingtarballs closed 8 years ago

trippingtarballs commented 8 years ago

As per the webpack documentation, node_modules is expected to be in the parent folder of webpack.config.js. Without this change, when I tried to run the project's example I got the following error:

    ERROR in ./~/html-webpack-plugin/lib/loader.js!../index.ejs
    Module not found: Error: Cannot resolve module 'babel-loader' in /Users/rbose85/Code/opensrc/html-webpack-template
     @ ./~/html-webpack-plugin/lib/loader.js!../index.ejs 1:8-92
jaketrent commented 8 years ago

Thanks for the fix!