Skip to content

Commit 4d05712

Browse files
committed
Show how to configure heft-web-rig-app-tutorial to consume the library bundle
1 parent 770ff15 commit 4d05712

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

build-tests-samples/heft-web-rig-app-tutorial/webpack.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ module.exports = function createConfig(env, argv) {
99
projectRoot: __dirname,
1010
// Documentation: https://webpack.js.org/configuration/
1111
configOverride: {
12+
resolve: {
13+
alias: {
14+
// Use the bundled library
15+
'heft-web-rig-library-tutorial':
16+
'heft-web-rig-library-tutorial/dist/heft-web-rig-library-tutorial.js'
17+
}
18+
},
1219
performance: {
1320
hints: env.production ? 'error' : false
1421
// This specifies the bundle size limit that will trigger Webpack's warning saying:

0 commit comments

Comments
 (0)