fix: remove style only entries from webpack

This commit is contained in:
abhijithvijayan 2020-01-31 15:59:51 +05:30
parent bedeb4f617
commit fd5ff409ce

View File

@ -9,7 +9,6 @@ const WriteWebpackPlugin = require('write-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const { CheckerPlugin } = require('awesome-typescript-loader');
const ExtensionReloader = require('webpack-extension-reloader');
const FixStyleOnlyEntriesPlugin = require('webpack-fix-style-only-entries');
const manifestInput = require('./src/manifest');
@ -56,7 +55,6 @@ module.exports = {
contentScript: path.join(sourcePath, 'ContentScript', 'index.ts'),
popup: path.join(sourcePath, 'Popup', 'index.tsx'),
options: path.join(sourcePath, 'Options', 'index.tsx'),
styles: [path.join(sourcePath, 'Popup', 'popup.scss'), path.join(sourcePath, 'Options', 'options.scss')],
},
output: {
@ -114,8 +112,7 @@ module.exports = {
plugins: [
// for awesome-typescript-loader
new CheckerPlugin(),
// https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/518
new FixStyleOnlyEntriesPlugin({ silent: true }),
// environmental variables
new webpack.EnvironmentPlugin(['NODE_ENV', 'TARGET_BROWSER']),
// delete previous build files
new CleanWebpackPlugin({