webpack.conf.js 473 B

1234567891011121314151617181920212223242526
  1. var ContextReplacementPlugin = require("webpack/lib/ContextReplacementPlugin");
  2. module.exports = {
  3. entry: './build/index.js',
  4. output: {
  5. path: './build',
  6. filename: 'bundle.js'
  7. },
  8. node: {
  9. fs: "empty"
  10. },
  11. bail: true,
  12. debug: true,
  13. module: {
  14. loaders: [
  15. { test: /\.css$/, loader: 'style-loader!css-loader' },
  16. ]
  17. },
  18. plugins: [
  19. new ContextReplacementPlugin(
  20. /codemirror\/mode.*$/,
  21. /codemirror\/mode.*\.js$/
  22. )
  23. ]
  24. }