Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1101 from mrfelton/fix/load-initial-user-settings
Browse files Browse the repository at this point in the history
build(webpack): copy empty.html to final build
  • Loading branch information
JimmyMow authored Dec 17, 2018
2 parents 9798731 + 0c05f6e commit c5876ad
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internals/webpack/webpack.config.renderer.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import HtmlWebpackPlugin from 'html-webpack-plugin'
import CspHtmlWebpackPlugin from 'csp-html-webpack-plugin'
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer'
import CleanWebpackPlugin from 'clean-webpack-plugin'
import CopyWebpackPlugin from 'copy-webpack-plugin'
import merge from 'webpack-merge'
import baseConfig, { rootDir } from './webpack.config.base'

Expand Down Expand Up @@ -95,6 +96,8 @@ export default merge.smart(baseConfig, {
template: path.join('app', 'app.html')
}),

new CopyWebpackPlugin([path.join('app', 'empty.html')]),

new CspHtmlWebpackPlugin({
'default-src': "'self'",
'object-src': "'none'",
Expand Down

0 comments on commit c5876ad

Please sign in to comment.