You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
monaco-editor/browser-esm-webpack-monaco-.../webpack.config.js

26 lines
503 B
JavaScript

const path = require("path");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");
module.exports = {
mode: process.env.NODE_ENV,
entry: "./index.js",
output: {
path: path.resolve(__dirname, "dist"),
filename: "[name].bundle.js",
},
module: {
rules: [{
test: /\.css$/,
use: ["style-loader", "css-loader",],
}, {
test: /\.ttf$/,
use: ['file-loader']
}],
},
plugins: [
new MonacoWebpackPlugin({
languages: ["typescript", "javascript", "css"],
})
]
};