webpack.conf.js 458 B

12345678910111213141516171819202122232425
  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. module: {
  13. loaders: [
  14. { test: /\.css$/, loader: 'style-loader!css-loader' },
  15. ]
  16. },
  17. plugins: [
  18. new ContextReplacementPlugin(
  19. /codemirror\/mode.*$/,
  20. /codemirror\/mode.*\.js$/
  21. )
  22. ]
  23. }