Skip to content

Commit 63b4129

Browse files
committed
More path related shenanigans
1 parent 960ab04 commit 63b4129

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

webpack.config.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ const controlConfig = {
66
entry: './src/index.tsx',
77
mode: 'development',
88
output: {
9-
filename: 'dist/selector.js',
10-
path: path.resolve(__dirname, 'dist')
9+
filename: 'selector.js',
10+
path: path.resolve(__dirname, 'dist'),
11+
publicPath: '/dist/',
1112
},
1213
devtool: 'inline-source-map',
1314
devServer: {
@@ -41,14 +42,14 @@ const controlConfig = {
4142
plugins: [
4243
new HtmlWebpackPlugin({
4344
template: 'src/selector.html',
44-
filename: 'dist/selector.html',
45+
filename: 'selector.html',
4546
}),
4647
new CopyWebpackPlugin({
4748
patterns: [
4849
{ from: "./node_modules/es6-promise/dist/es6-promise.min.js", to: "libs/es6-promise.min.js" },
4950
{ from: "./node_modules/azure-devops-extension-sdk/SDK.min.js", to: "libs/SDK.min.js" },
5051
{ from: "./img/Logo.png", to: "img/logo.png" },
51-
{ from: "./src/RestSelector.css", to: "./dist/" },
52+
{ from: "./src/RestSelector.css", to: "./" },
5253
]
5354
})
5455
],

0 commit comments

Comments
 (0)