sandoche / Jekyll-webpack-boilerplate

⚡️ A boilerplate with Jekyll and Webpack to make the most performant static websites
MIT License
188 stars 57 forks source link

add webpack cli #23

Closed matbrgz closed 4 years ago

sandoche commented 5 years ago

Why adding webpack-cli ?

matbrgz commented 5 years ago

https://github.com/sandoche/Jekyll-webpack-boilerplate/issues/22

sandoche commented 4 years ago

Can you make it with npm ? I tried to make it work with npm and it didn't.

sandoche commented 4 years ago

Hello, Thanks for adding this. It still does not run I get

[0] Error: Cannot find module 'webpack-cli/bin/config-yargs'
[0]     at Function.Module._resolveFilename (module.js:548:15)
[0]     at Function.Module._load (module.js:475:25)
[0]     at Module.require (module.js:597:17)
[0]     at require (internal/module.js:11:18)
[0]     at Object.<anonymous> (/mnt/d/Sandoche/00 - Projects/Jekyll-webpack-boilerplate/node_modules/webpack-dev-server/bin/webpack-dev-server.js:84:1)
[0]     at Module._compile (module.js:653:30)
[0]     at Object.Module._extensions..js (module.js:664:10)
[0]     at Module.load (module.js:566:32)
[0]     at tryModuleLoad (module.js:506:12)
[0]     at Function.Module._load (module.js:498:3)
[0] webpack-dev-server --env=dev exited with code 1
sandoche commented 4 years ago

Solved in commit 67f5d575e329f85d3da8eda329d6cb334bc35c8d