Replace to shakapacker from webpacker
This commit is contained in:
parent
0aacf00f5b
commit
64ee565b33
80 changed files with 1737 additions and 3956 deletions
|
@ -1,5 +1,5 @@
|
|||
const { join } = require('path');
|
||||
const { settings, env } = require('../configuration');
|
||||
const { config, env } = require('shakapacker');
|
||||
|
||||
module.exports = {
|
||||
test: /\.(js|mjs)$/,
|
||||
|
@ -16,8 +16,8 @@ module.exports = {
|
|||
plugins: [
|
||||
'transform-react-remove-prop-types',
|
||||
],
|
||||
cacheDirectory: join(settings.cache_path, 'babel-loader-node-modules'),
|
||||
cacheCompression: env.NODE_ENV === 'production',
|
||||
cacheDirectory: join(config.cache_path, 'babel-loader-node-modules'),
|
||||
cacheCompression: env.isProduction,
|
||||
compact: false,
|
||||
sourceMaps: false,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue