1234567891011121314151617181920212223242526 |
- var ContextReplacementPlugin = require("webpack/lib/ContextReplacementPlugin");
- module.exports = {
- entry: './build/index.js',
- output: {
- path: './build',
- filename: 'bundle.js'
- },
- node: {
- fs: "empty"
- },
- bail: true,
- debug: true,
- module: {
- loaders: [
- { test: /\.css$/, loader: 'style-loader!css-loader' },
- ]
- },
- plugins: [
- new ContextReplacementPlugin(
- /codemirror\/mode.*$/,
- /codemirror\/mode.*\.js$/
- )
- ]
- }
|