webpack.config.js 386 B

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