Skip to content
Permalink
Browse files

Install/Setup HtmlWebpackPlugin and HtmlWebpackHarddiskPlugin

  • Loading branch information
leonelgalan committed Mar 2, 2020
1 parent 0b5c8d9 commit a8fad1d0b8ae0a356910de492d412493a7305f7f
Showing with 235 additions and 7 deletions.
  1. +15 −0 config/webpack/environment.js
  2. +2 −0 package.json
  3. +218 −7 yarn.lock
@@ -1,3 +1,18 @@
const { environment } = require('@rails/webpacker')

const HtmlWebpackPlugin = require('html-webpack-plugin')
const HtmlWebpackHarddiskPlugin = require('html-webpack-harddisk-plugin')

environment.plugins.append(
'html',
new HtmlWebpackPlugin({
alwaysWriteToDisk: true
})
)

environment.plugins.append(
'html-harddisk',
new HtmlWebpackHarddiskPlugin()
)

module.exports = environment
@@ -3,6 +3,8 @@
"@babel/preset-react": "^7.8.3",
"@rails/webpacker": "4.2.2",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"html-webpack-harddisk-plugin": "^1.0.1",
"html-webpack-plugin": "^3.2.0",
"prop-types": "^15.7.2",
"react": "^16.13.0",
"react-dom": "^16.13.0"

0 comments on commit a8fad1d

Please sign in to comment.
You can’t perform that action at this time.