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