Skip to content

Commit 277fe24

Browse files
get hard-coded folders dynamicly from patternlab-config.json
1 parent a3c74c8 commit 277fe24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ module.exports = env => {
1616

1717
const config = merge.smartStrategy(plConfig.webpackMerge)({
1818
devtool: ifDev('source-map'),
19-
context: resolve(__dirname, 'source'),
19+
context: resolve(__dirname, plConfig.paths.source.root),
2020
node: {
2121
fs: "empty"
2222
},
@@ -29,7 +29,7 @@ module.exports = env => {
2929
})
3030
},
3131
output: {
32-
path: resolve(__dirname, 'public'),
32+
path: resolve(__dirname, plConfig.paths.public.root),
3333
filename: '[name].js'
3434
},
3535
plugins: removeEmpty([

0 commit comments

Comments
 (0)