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

@ -6,7 +6,7 @@
"typings": "./out/index.d.ts",
"scripts": {
"smoketest": "node ./node_modules/webpack/bin/webpack.js --config smoketest/webpack.config.js --progress",
"test-cross-origin": "node ./node_modules/webpack/bin/webpack.js --config test/webpack-cross-origin.config.js --progress",
"smoketest-cross-origin": "node ./node_modules/webpack/bin/webpack.js --config smoketest/webpack-cross-origin.config.js --progress",
"watch": "tsc -w -p tsconfig.json",
"compile": "tsc -p tsconfig.json",
"import-editor": "node ./scripts/import-editor.js",

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')
})
]
};