[Fix] style only entry generating js files

This commit is contained in:
abhijithvijayan 2019-10-25 13:30:37 +05:30
parent 418ab17150
commit ef1fe7e580
3 changed files with 10 additions and 2 deletions

View File

@ -40,6 +40,7 @@
"style-loader": "^1.0.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.9",
"webpack-dev-server": "^3.9.0"
"webpack-dev-server": "^3.9.0",
"webpack-fix-style-only-entries": "^0.4.0"
}
}

View File

@ -1,6 +1,8 @@
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
module.exports = {
mode: 'development',
@ -17,7 +19,7 @@ module.exports = {
path: path.resolve(__dirname, 'extension'),
},
plugins: [new webpack.ProgressPlugin(), new HtmlWebpackPlugin()],
plugins: [new FixStyleOnlyEntriesPlugin(), new webpack.ProgressPlugin(), new HtmlWebpackPlugin()],
module: {
rules: [

View File

@ -6783,6 +6783,11 @@ webpack-dev-server@^3.9.0:
ws "^6.2.1"
yargs "12.0.5"
webpack-fix-style-only-entries@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/webpack-fix-style-only-entries/-/webpack-fix-style-only-entries-0.4.0.tgz#a027ceb960447b29eed2c56d9ddc003e52d60fb5"
integrity sha512-6TDa56V/xSOw6CBVlhFm6J+xXY2oJzx7CEgH0dmex2Xe1rwb95KkLl3rXvSNpO4wyahwD3YnYqffDNR0LH1BNQ==
webpack-log@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/webpack-log/-/webpack-log-2.0.0.tgz#5b7928e0637593f119d32f6227c1e0ac31e1b47f"