uglifyJsPlugin-3.input.js 451 B

1234567891011121314151617181920212223242526
  1. module.exports = {
  2. devtool: 'eval',
  3. entry: [
  4. './src/index'
  5. ],
  6. output: {
  7. path: path.join(__dirname, 'dist'),
  8. filename: 'index.js'
  9. },
  10. module: {
  11. loaders: [{
  12. test: /.js$/,
  13. loaders: ['babel'],
  14. include: path.join(__dirname, 'src')
  15. }]
  16. },
  17. resolve: {
  18. root: path.resolve('/src'),
  19. modules: ['node_modules']
  20. },
  21. plugins: [
  22. new webpack.optimize.UglifyJsPlugin(),
  23. new webpack.optimize.OccurrenceOrderPlugin()
  24. ],
  25. debug: true
  26. };