From fd5ff409ce58fda16d2e2b4e7526e403ce57d571 Mon Sep 17 00:00:00 2001 From: abhijithvijayan <34790378+abhijithvijayan@users.noreply.github.com> Date: Fri, 31 Jan 2020 15:59:51 +0530 Subject: [PATCH] fix: remove style only entries from webpack --- webpack.config.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/webpack.config.js b/webpack.config.js index 21b942e..cceeee4 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -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({