monaco-yaml/examples/webpack-worker-loader/webpack.config.js
Remco Haszing ac7b6fe307
Introduce ESLint
The ESLint preset `eslint-config-remcohaszing` is used.
2021-07-17 17:12:17 +02:00

35 lines
608 B
JavaScript

const { resolve } = require('path');
const HtmlWebPackPlugin = require('html-webpack-plugin');
module.exports = {
entry: {
main: './index.js',
},
output: {
globalObject: 'this',
filename: '[name].bundle.js',
path: resolve(__dirname, 'dist'),
},
module: {
rules: [
{
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.ttf$/,
loader: 'file-loader',
},
],
},
plugins: [
new HtmlWebPackPlugin({
template: './index.html',
}),
],
node: {
fs: 'empty',
module: 'empty',
},
};