20 lines
358 B
JavaScript
20 lines
358 B
JavaScript
|
const merge = require('webpack-merge');
|
||
|
const common = require('./webpack.common.js');
|
||
|
|
||
|
module.exports = merge(common, {
|
||
|
mode: 'production',
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js$/,
|
||
|
use: {
|
||
|
loader: 'babel-loader',
|
||
|
options: {
|
||
|
presets: [ '@babel/preset-env' ]
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
});
|