evenstensberg / webpack-scaffold-demo

Demo of a webpack-scaffold
MIT License
20 stars 2 forks source link

webpack-cli init module.exports = {}; #4

Open iuryfranky opened 3 years ago

iuryfranky commented 3 years ago

.yo-rc.json

{ "scaffold-hello": { "configuration": { "dev": { "webpackOptions": { "entry": "app.js", "ouput": { "path": "Path.resolve(dirname, \"dist__\")", "filename": "[name].bundle.js" }, "plugins": [ "new HtmlWebpackPlugin({filename: \"index.html\" })" ] }, "topScope": [ "const path = require(\"path\")", "const webpack = require(\"webpack\")", "const HtmlWebpackPlugin = require(\"html-webpack-plugin\")" ], "configName": "dev" } } } }

webpack.config.js

module.exports = {};