webpack.config.production.js 443 B

1234567891011121314151617181920
  1. var path = require('path');
  2. var webpack = require('webpack');
  3. module.exports = {
  4. entry: './js/index.js',
  5. output: { path: __dirname, filename: 'bundle.js' },
  6. module: {
  7. loaders: [
  8. {
  9. test: /.jsx?$/,
  10. loader: 'babel-loader',
  11. exclude: /node_modules/,
  12. query: {
  13. presets: ['es2015', 'react']
  14. }
  15. },
  16. { test: /\.css$/, loader: "style-loader!css-loader?root=." },
  17. ]
  18. },
  19. };