Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const config = {
- entry: ['./src/main'],
- output: {
- path: path.join(__dirname, '../../dist'),
- filename: 'osg-owallet-bonus-list.min.js',
- library: ['Offsidegaming', 'OwalletBonusList'],
- libraryTarget: 'umd',
- },
- plugins: [
- new webpack.optimize.OccurenceOrderPlugin(),
- new webpack.DefinePlugin({
- 'process.env': {
- 'NODE_ENV': JSON.stringify('production'),
- 'VERSION': JSON.stringify(`${pkg.version}`),
- },
- }),
- new webpack.optimize.UglifyJsPlugin({
- compressor: {
- screw_ie8: true,
- warnings: false,
- },
- }),
- ],
- module: {
- loaders: [{
- test: /\.js$/,
- loaders: ['babel'],
- include: path.join(__dirname, '../../src'),
- }],
- },
- };
- module.exports = config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement