Update example to correctly package .ttf (microsoft/monaco-editor-webpack-plugin#90)

This commit is contained in:
Alexandru Dima 2020-01-06 13:57:29 +01:00
parent e2b1aa8169
commit dc47a2706e
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0

View file

@ -46,6 +46,9 @@ module.exports = {
rules: [{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}, {
test: /\.ttf$/,
use: ['file-loader']
}]
},
plugins: [
@ -118,6 +121,9 @@ module.exports = {
rules: [{
test: /\.css$/,
use: ['style-loader', 'css-loader']
}, {
test: /\.ttf$/,
use: ['file-loader']
}]
}
};