|
|
@ -6,7 +6,6 @@ const RemoveEmptyScriptsPlugin = require('webpack-remove-empty-scripts') |
|
|
|
const CopyPlugin = require('copy-webpack-plugin') |
|
|
|
const CopyPlugin = require('copy-webpack-plugin') |
|
|
|
|
|
|
|
|
|
|
|
const mode = process.env.NODE_ENV === 'development' ? 'development' : 'production' |
|
|
|
const mode = process.env.NODE_ENV === 'development' ? 'development' : 'production' |
|
|
|
const publicPath = '2082/' // process.env.RAILS_RELATIVE_URL_ROOT ?? ''
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
mode, |
|
|
|
mode, |
|
|
@ -49,7 +48,7 @@ module.exports = { |
|
|
|
filename: '[name].js', |
|
|
|
filename: '[name].js', |
|
|
|
// we must set publicPath to an empty value to override the default of
|
|
|
|
// we must set publicPath to an empty value to override the default of
|
|
|
|
// auto which doesn't work in IE11
|
|
|
|
// auto which doesn't work in IE11
|
|
|
|
publicPath: publicPath, |
|
|
|
publicPath: '', |
|
|
|
path: path.resolve(__dirname, 'app/assets/builds') |
|
|
|
path: path.resolve(__dirname, 'app/assets/builds') |
|
|
|
}, |
|
|
|
}, |
|
|
|
plugins: [ |
|
|
|
plugins: [ |
|
|
|