add libs folder to the webpack

This commit is contained in:
Paulo Aboim Pinto 2022-04-22 23:19:20 +02:00
Родитель f659bc898a
Коммит fef77eed56
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -17,7 +17,8 @@ const extensionConfig = {
// the bundle is stored in the 'dist' folder (check package.json), 📖 -> https://webpack.js.org/configuration/output/
path: path.resolve(__dirname, 'dist'),
filename: 'extension.js',
libraryTarget: 'commonjs2'
libraryTarget: 'commonjs2',
publicPath: "/libs/"
},
externals: {
vscode: 'commonjs vscode' // the vscode-module is created on-the-fly and must be excluded. Add other modules that cannot be webpack'ed, 📖 -> https://webpack.js.org/configuration/externals/