Repository URL to install this package:
|
Version:
1.3.0 ▾
|
ff-editor
/
webpack.config.production.js
|
|---|
'use strict';
const { resolve } = require('path');
const webpack = require('webpack');
module.exports = {
entry:{
RichTextEditor: './src/App.js'
},
output: {
filename: '[name].js',
path: resolve(__dirname, 'dist'),
publicPath: '/'
},
module: {
rules: [
{
test: /\.js$/,
use: [ 'babel-loader' ],
exclude: /node_modules/
},
{
test: /\.css$/,
exclude: /\.global\.css$/,
use: [
'style-loader',
'css-loader?modules&importLoaders=1&localIdentName=[name]__[local]___[hash:base64:5]'
]
},
{
test: /\.global\.css$/,
loader: 'style-loader!raw-loader'
}
]
},
plugins: [
new webpack.DefinePlugin({
'process.env.NODE_ENV': JSON.stringify('production')
}),
new webpack.optimize.UglifyJsPlugin({
compress:{
warnings: true
}
})
]
};