Open iuryfranky opened 3 years ago
{ "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" } } } }
module.exports = {};
.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 = {};