mirror of
https://github.com/abhijithvijayan/web-extension-starter.git
synced 2025-10-07 07:22:37 +02:00
fix: remove style only entries from webpack
This commit is contained in:
parent
bedeb4f617
commit
fd5ff409ce
@ -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({
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user