I was trying to create my own custom scaffolding add on, so one can create his development/production version of webpack configuration file without knowing anything about configuration settings. I wanted to work this add on like "webpack init" does. I am a windows 10 user. My Node version is 8.11.1 and npm version is 5.6.0. I have tried it on a fresh Webpack 4 installation. I have copied the code from this repository, created two separate files i.e. "generator.js" and "dev-config.js". But, when I was trying to run this by typing webpack --init webpack-addons-demo, it showing me ...
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in Entry module not found: Error: Can't resolve './src' in 'E:\webpack_4'
I was trying to create my own custom scaffolding add on, so one can create his development/production version of webpack configuration file without knowing anything about configuration settings. I wanted to work this add on like "webpack init" does. I am a windows 10 user. My Node version is 8.11.1 and npm version is 5.6.0. I have tried it on a fresh Webpack 4 installation. I have copied the code from this repository, created two separate files i.e. "generator.js" and "dev-config.js". But, when I was trying to run this by typing webpack --init webpack-addons-demo, it showing me ...
E:\webpack_4>webpack --init webpack-addons-demo Hash: d2417db301b3badaa46d Version: webpack 4.8.1 Time: 54ms Built at: 2018-05-10 18:23:18
WARNING in configuration The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment. You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in Entry module not found: Error: Can't resolve './src' in 'E:\webpack_4'