Have the webpack plugin tests use the /release/ folder

This commit is contained in:
Alex Dima 2021-11-11 19:27:59 +01:00
parent 8af6bd5f8a
commit 8430c538b4
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
5 changed files with 54 additions and 28 deletions

View file

@ -9,6 +9,11 @@ module.exports = {
path: path.resolve(__dirname, 'dist'),
filename: 'app.js'
},
resolve: {
alias: {
'monaco-editor': path.resolve(__dirname, '../../release'),
},
},
module: {
rules: [
{
@ -21,5 +26,7 @@ module.exports = {
}
]
},
plugins: [new MonacoWebpackPlugin()]
plugins: [new MonacoWebpackPlugin({
monacoEditorPath: path.resolve(__dirname, '../../release')
})]
};