Small tweaks

This commit is contained in:
Alex Dima 2021-11-15 22:37:47 +01:00
parent 45227a089e
commit e65bc32232
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
3 changed files with 6 additions and 64 deletions

View file

@ -3,18 +3,20 @@ const path = require('path');
const ASSET_PATH = 'http://localhost:8088/monaco-editor-webpack-plugin/test/dist/';
const REPO_ROOT = path.join(__dirname, '../../');
module.exports = {
mode: 'development',
entry: './index.js',
context: __dirname,
output: {
path: path.resolve(__dirname, 'dist'),
path: path.resolve(REPO_ROOT, 'test/smoke/webpack/out'),
filename: 'app.js',
publicPath: ASSET_PATH
},
resolve: {
alias: {
'monaco-editor': path.resolve(__dirname, '../../release')
'monaco-editor': path.resolve(REPO_ROOT, 'release')
}
},
module: {
@ -31,7 +33,7 @@ module.exports = {
},
plugins: [
new MonacoWebpackPlugin({
monacoEditorPath: path.resolve(__dirname, '../../release')
monacoEditorPath: path.resolve(REPO_ROOT, 'release')
})
]
};