chore: fix error

This commit is contained in:
Aman Harwara
2023-07-12 19:52:03 +05:30
parent af3eafb009
commit 69ba1a0809

View File

@@ -39,7 +39,7 @@ module.exports = (env) => {
chunks: 'all', chunks: 'all',
}, },
} }
: undefined, : {},
plugins: [ plugins: [
new CircularDependencyPlugin({ new CircularDependencyPlugin({
// exclude detection of files based on a RegExp // exclude detection of files based on a RegExp
@@ -65,13 +65,17 @@ module.exports = (env) => {
new CopyWebpackPlugin({ new CopyWebpackPlugin({
patterns: copyPluginPatterns, patterns: copyPluginPatterns,
}), }),
process.env.BUILD_TARGET === 'clipper' && ].concat(
new HtmlWebpackPlugin({ process.env.BUILD_TARGET === 'clipper'
filename: 'popup.html', ? [
inject: false, new HtmlWebpackPlugin({
templateContent: clipperHtmlTemplate, filename: 'popup.html',
}), inject: false,
], templateContent: clipperHtmlTemplate,
}),
]
: [],
),
resolve: { resolve: {
extensions: ['.ts', '.tsx', '.js'], extensions: ['.ts', '.tsx', '.js'],
fallback: { fallback: {