1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-06-27 21:05:53 +00:00
FrankerFaceZ/webpack.web.dev.babel.js
SirStendec 99f9974dea Fix a CSS bug with the emote menu.
Fix Edge not building properly. It was failing to transpile .jsx files.
Add a dev script for the babel build for Edge. It's just as bad as you'd imagine.
Stop using the env preset for babel builds and instead just use the class transform plugin.
Add logging to Module when discovering modules.
2018-04-11 22:18:04 -04:00

40 lines
No EOL
699 B
JavaScript

/* eslint-disable */
const path = require('path');
const merge = require('webpack-merge');
const dev = require('./webpack.web.dev.js');
const UglifyJSPlugin = require('uglifyjs-webpack-plugin');
/* global module */
module.exports = merge(dev, {
module: {
rules: [{
test: /\.jsx?$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {
cacheDirectory: true,
plugins: ['transform-es2015-classes']
}
}
}]
},
plugins: [
new UglifyJSPlugin({
sourceMap: true,
uglifyOptions: {
compress: {
keep_fnames: true,
keep_classnames: true
},
mangle: {
keep_classnames: true,
keep_fnames: true
}
}
})
]
});