* Add README files to several directories in app/ giving a brief overview of some parts of Danbooru's architecture. * Add documentation for files in config/.
18 lines
426 B
JavaScript
18 lines
426 B
JavaScript
// @see https://github.com/webpack-contrib/eslint-webpack-plugin
|
|
|
|
process.env.NODE_ENV = process.env.NODE_ENV || 'development'
|
|
|
|
const { merge } = require('@rails/webpacker')
|
|
const webpackConfig = require('./base');
|
|
const ESLintPlugin = require('eslint-webpack-plugin');
|
|
|
|
module.exports = merge(webpackConfig, {
|
|
plugins: [
|
|
new ESLintPlugin({
|
|
cache: true,
|
|
threads: true,
|
|
emitWarning: true
|
|
})
|
|
]
|
|
});
|