webpack.config.js 374 B

123456789101112131415161718192021
  1. var path = require('path');
  2. module.exports = {
  3. entry: './index.js',
  4. module: {
  5. loaders: [
  6. {
  7. test: /\.js$/,
  8. exclude: /(node_modules|bower_components)/,
  9. loader: 'babel-loader',
  10. query: {
  11. presets: ['env']
  12. }
  13. }
  14. ]
  15. },
  16. output: {
  17. filename: 'bundle.js',
  18. path: path.resolve(__dirname, 'dist')
  19. }
  20. };