Skip to content

Commit

Permalink
Fix lint warning
Browse files Browse the repository at this point in the history
  • Loading branch information
malept committed Feb 3, 2020
1 parent 2ab4a76 commit bc18e3f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/plugin/webpack/src/WebpackConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,13 @@ export default class WebpackConfigGenerator {

const defines = this.getDefines(false);
const plugins = entryPoints.filter((entryPoint) => Boolean(entryPoint.html))
.map((entryPoint) => new HtmlWebpackPlugin({
title: entryPoint.name,
template: entryPoint.html,
filename: `${entryPoint.name}/index.html`,
chunks: [entryPoint.name].concat(entryPoint.additionalChunks || []),
}) as webpack.Plugin).concat([new webpack.DefinePlugin(defines)])
.concat(this.isProd ? [] : [new webpack.HotModuleReplacementPlugin()]);
.map((entryPoint) => new HtmlWebpackPlugin({
title: entryPoint.name,
template: entryPoint.html,
filename: `${entryPoint.name}/index.html`,
chunks: [entryPoint.name].concat(entryPoint.additionalChunks || []),
}) as webpack.Plugin).concat([new webpack.DefinePlugin(defines)])
.concat(this.isProd ? [] : [new webpack.HotModuleReplacementPlugin()]);
return webpackMerge.smart({
entry,
devtool: 'inline-source-map',
Expand Down

0 comments on commit bc18e3f

Please sign in to comment.