Skip to content

Commit b047cba

Browse files
committed
fix: update Webpack config public path + add to default Webpack config options that can get overwritten via the cosmic config file in place
1 parent bef037b commit b047cba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/uikit-workshop/webpack.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ const defaultConfig = {
1717
buildDir: './dist',
1818
prod: false, // or false for local dev
1919
sourceMaps: true,
20+
publicPath: '/styleguide/',
2021
};
2122

2223
module.exports = async function() {
@@ -92,7 +93,7 @@ module.exports = async function() {
9293
},
9394
output: {
9495
path: path.resolve(process.cwd(), `${config.buildDir}/styleguide`),
95-
publicPath: '/pattern-lab/styleguide/',
96+
publicPath: `${config.publicPath}`,
9697
filename: '[name].js',
9798
chunkFilename: `js/[name]-chunk-[chunkhash].js`,
9899
},

0 commit comments

Comments
 (0)