blob: d8d785b98a5b820738a3a4000c579db95cc9b8c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const { resolve } = require('path');
const env = process.env.NODE_ENV || 'development';
module.exports = {
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader',
options: {
sourceRoot: 'app/javascript',
cacheDirectory: env === 'development' ? false : resolve(__dirname, '..', '..', '..', 'tmp', 'cache', 'babel-loader'),
},
};
|