Upgrade to Webpacker 6.0.

This commit is contained in:
evazion
2021-01-27 20:49:24 -06:00
parent 2eeee446a5
commit 90cd3293eb
20 changed files with 717 additions and 3088 deletions

View File

@@ -1,8 +1,15 @@
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
const environment = require('./environment')
const eslint = require('./loaders/eslint')
const { merge } = require('@rails/webpacker')
const webpackConfig = require('./base');
const ESLintPlugin = require('eslint-webpack-plugin');
environment.loaders.append('eslint', eslint);
module.exports = environment.toWebpackConfig()
module.exports = merge(webpackConfig, {
plugins: [
new ESLintPlugin({
cache: true,
threads: true,
emitWarning: true
})
]
});