mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-30 19:52:20 +01:00
(bug) Error: Cannot find module '@pmmmwh/react-refresh-webpack-plugin' in production env
This commit is contained in:
parent
41375ecc7a
commit
523311101a
@ -2,8 +2,6 @@ const { webpackConfig, merge } = require('shakapacker');
|
|||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
|
||||||
const ReactRefreshWebpackPlugin = require('@pmmmwh/react-refresh-webpack-plugin');
|
|
||||||
|
|
||||||
const htmlErb = require('./modules/html_erb');
|
const htmlErb = require('./modules/html_erb');
|
||||||
const jsErb = require('./modules/js_erb');
|
const jsErb = require('./modules/js_erb');
|
||||||
const sass = require('./modules/sass');
|
const sass = require('./modules/sass');
|
||||||
@ -33,7 +31,7 @@ const customConfig = {
|
|||||||
Application: [path.resolve(path.join(__dirname, '../../app/frontend/src/javascript/app.js')), 'Application'],
|
Application: [path.resolve(path.join(__dirname, '../../app/frontend/src/javascript/app.js')), 'Application'],
|
||||||
process: 'process/browser'
|
process: 'process/browser'
|
||||||
}),
|
}),
|
||||||
isDevelopment && new ReactRefreshWebpackPlugin()
|
isDevelopment && new (require('@pmmmwh/react-refresh-webpack-plugin'))()
|
||||||
].filter(Boolean),
|
].filter(Boolean),
|
||||||
module: {
|
module: {
|
||||||
rules: [
|
rules: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user