const path = require('path'); const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin'); module.exports = { mode: 'development', devtool: 'cheap-module-eval-source-map', entry: './src/index.js', output: { path: path.resolve(__dirname, './dist'), publicPath: '/dist/', }, module: { rules: [ { test: /\.jsx?$/, loader: 'babel-loader', exclude: /node_modules/, }, { test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/, loader: 'url-loader', options: { limit: 10000, name: 'dist/fonts/[name].[hash:7].[ext]', }, }, { test: /\.css$/, use: [ 'style-loader', 'css-loader', ], }, ], }, devServer: { inline: true, open: true, hot: true, overlay: true, }, plugins: [ new MonacoWebpackPlugin(), ], node: { fs: 'empty', }, };