-
-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐞[init]: entry point does not appears in newly generated config #976
Comments
Got screenshots? |
After running initwasd@turing-machine ~/webpack/testing ℹ INFO For more information and a detailed description of each question, have a look at: https://github.com/webpack/webpack-cli/blob/master/INIT.md ? Will your application have multiple bundles? No Congratulations! Your new webpack configuration file has been created! You can now run yarn build to bundle your application! wasd@turing-machine ~/webpack/testing /*
*/ const HtmlWebpackPlugin = require('html-webpack-plugin'); /*
*/ /*
*/ const TerserPlugin = require('terser-webpack-plugin'); const workboxPlugin = require('workbox-webpack-plugin'); module.exports = {
}; |
In the above comment, you can see that I have given entry point as |
Reason for this is My {
"*": {
"configuration": {
"config": {
"topScope": [
"const webpack = require('webpack')",
"const path = require('path')",
"\n",
"/*\n * SplitChunksPlugin is enabled by default and replaced\n * deprecated CommonsChunkPlugin. It automatically identifies modules which\n * should be splitted of chunk by heuristics using module duplication count and\n * module category (i. e. node_modules). And splits the chunks…\n *\n * It is safe to remove \"splitChunks\" from the generated configuration\n * and was added as an educational example.\n *\n * https://webpack.js.org/plugins/split-chunks-plugin/\n *\n */",
"/*\n * We've enabled UglifyJSPlugin for you! This minifies your app\n * in order to load faster and run less javascript.\n *\n * https://github.com/webpack-contrib/uglifyjs-webpack-plugin\n *\n */",
"const UglifyJSPlugin = require('uglifyjs-webpack-plugin');",
"\n"
],
"webpackOptions": {
"module": {
"rules": []
},
"output": {
"chunkFilename": "'[name].[chunkhash].js'",
"filename": "'[name].[chunkhash].js'",
"path": "path.resolve(__dirname, 'gdfgfdg')"
},
"mode": "'development'",
"plugins": ["new UglifyJSPlugin()"],
"optimization": {
"splitChunks": {
"cacheGroups": {
"vendors": {
"priority": -10,
"test": "/[\\\\/]node_modules[\\\\/]/"
}
},
"chunks": "'async'",
"minChunks": 1,
"minSize": 30000,
"name": true
}
}
},
"configName": "config"
}
}
},
"testing": {
"configuration": {
"config": {
"configName": "config",
"topScope": [
"const path = require('path');",
"const webpack = require('webpack');",
"\n",
"/*\n * SplitChunksPlugin is enabled by default and replaced\n * deprecated CommonsChunkPlugin. It automatically identifies modules which\n * should be splitted of chunk by heuristics using module duplication count and\n * module category (i. e. node_modules). And splits the chunks…\n *\n * It is safe to remove \"splitChunks\" from the generated configuration\n * and was added as an educational example.\n *\n * https://webpack.js.org/plugins/split-chunks-plugin/\n *\n */",
"const HtmlWebpackPlugin = require('html-webpack-plugin')",
"\n",
"/*\n * We've enabled HtmlWebpackPlugin for you! This generates a html\n * page for you when you compile webpack, which will make you start\n * developing and prototyping faster.\n * \n * https://github.com/jantimon/html-webpack-plugin\n * \n */",
"/*\n * We've enabled TerserPlugin for you! This minifies your app\n * in order to load faster and run less javascript.\n *\n * https://github.com/webpack-contrib/terser-webpack-plugin\n *\n */",
"const TerserPlugin = require('terser-webpack-plugin');",
"\n",
"const workboxPlugin = require('workbox-webpack-plugin');",
"\n"
],
"webpackOptions": {
"mode": "'production'",
"entry": "'./efg.js'",
"plugins": [
"new webpack.ProgressPlugin()",
"new HtmlWebpackPlugin({\n\t\t\t\t\ttemplate: 'index.html'\n\t\t\t\t})",
"new workboxPlugin.GenerateSW({\n\t\t\tswDest: 'sw.js',\n\t\t\tclientsClaim: true,\n\t\t\tskipWaiting: false,\n\t\t})"
],
"module": {
"rules": []
},
"devServer": {
"open": true
},
"optimization": {
"minimizer": ["new TerserPlugin()"],
"splitChunks": {
"chunks": "'all'"
}
}
}
}
}
},
"testing2": {
"configuration": {
"config": {
"configName": "config",
"topScope": [
"const path = require('path');",
"const webpack = require('webpack');",
"\n",
"/*\n * SplitChunksPlugin is enabled by default and replaced\n * deprecated CommonsChunkPlugin. It automatically identifies modules which\n * should be splitted of chunk by heuristics using module duplication count and\n * module category (i. e. node_modules). And splits the chunks…\n *\n * It is safe to remove \"splitChunks\" from the generated configuration\n * and was added as an educational example.\n *\n * https://webpack.js.org/plugins/split-chunks-plugin/\n *\n */",
"const HtmlWebpackPlugin = require('html-webpack-plugin')",
"\n",
"/*\n * We've enabled HtmlWebpackPlugin for you! This generates a html\n * page for you when you compile webpack, which will make you start\n * developing and prototyping faster.\n * \n * https://github.com/jantimon/html-webpack-plugin\n * \n */",
"/*\n * We've enabled TerserPlugin for you! This minifies your app\n * in order to load faster and run less javascript.\n *\n * https://github.com/webpack-contrib/terser-webpack-plugin\n *\n */",
"const TerserPlugin = require('terser-webpack-plugin');",
"\n",
"const workboxPlugin = require('workbox-webpack-plugin');",
"\n"
],
"webpackOptions": {
"mode": "'production'",
"entry": "'./bcd.js'",
"plugins": [
"new webpack.ProgressPlugin()",
"new HtmlWebpackPlugin({\n\t\t\t\t\ttemplate: 'index.html'\n\t\t\t\t})",
"new workboxPlugin.GenerateSW({\n\t\t\tswDest: 'sw.js',\n\t\t\tclientsClaim: true,\n\t\t\tskipWaiting: false,\n\t\t})"
],
"module": {
"rules": []
},
"devServer": {
"open": true
},
"optimization": {
"minimizer": ["new TerserPlugin()"],
"splitChunks": {
"chunks": "'all'"
}
}
}
}
}
}
}
|
I have changed the package name from |
Same here, that's why I'm curious of why this fails |
Up for grabs, good first contribution |
Describe the bug
The missing entry point in the generated config.
What is the current behavior?
Missing entry point
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Entry point must exist
The text was updated successfully, but these errors were encountered: