Advertisement
Guest User

config

a guest
Feb 11th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. const config = {
  2. entry: ['./src/main'],
  3. output: {
  4. path: path.join(__dirname, '../../dist'),
  5. filename: 'osg-owallet-bonus-list.min.js',
  6. library: ['Offsidegaming', 'OwalletBonusList'],
  7. libraryTarget: 'umd',
  8. },
  9. plugins: [
  10. new webpack.optimize.OccurenceOrderPlugin(),
  11. new webpack.DefinePlugin({
  12. 'process.env': {
  13. 'NODE_ENV': JSON.stringify('production'),
  14. 'VERSION': JSON.stringify(`${pkg.version}`),
  15. },
  16. }),
  17. new webpack.optimize.UglifyJsPlugin({
  18. compressor: {
  19. screw_ie8: true,
  20. warnings: false,
  21. },
  22. }),
  23. ],
  24. module: {
  25. loaders: [{
  26. test: /\.js$/,
  27. loaders: ['babel'],
  28. include: path.join(__dirname, '../../src'),
  29. }],
  30. },
  31. };
  32.  
  33. module.exports = config;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement