You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -134,10 +135,10 @@ Because of this approach it is highly scalable with increasing modules count in
134
135
2.`npm start` - browser will open automatically
135
136
136
137
#### Build for Production Workflow
137
-
1.`npm run build` - package created in 'dist' folder
138
-
-`npm run build:app` - build only app.js _(run when app source code has changed)_
139
-
-`npm run build:vendor` - build only vendor.js _(run when app dependencies has changed)_
140
-
2. open `http://localhost/dist/` - to check build on local server
138
+
1.`npm run build` - create app.js & vendor.js bundles in 'dist' folder
139
+
-`npm run build:app` - build only app.js bundle _(run when app source code has changed)_
140
+
-`npm run build:vendor` - build only vendor.js bundle _(run when app dependencies has changed)_
141
+
2. open `http://localhost/dist/` - check prod build on local server
141
142
142
143
---
143
144
@@ -147,9 +148,9 @@ Because of this approach it is highly scalable with increasing modules count in
147
148
148
149
#### Development Bundling
149
150
150
-
`npm run bundle-dev` - bundle static dependencies for quick full-page reload, app sources remain as seperate modules for on-the-fly HMR & transpilation
151
+
`npm run bundle-dev` - build vendor packages in single file bundle for quick full-page reload__(app sources remain as seperate modules for on-the-fly HMR & transpilation)__
151
152
152
-
`npm run unbundle` - un-bundle static dependencies (usefull when changing app dependencies)
153
+
`npm run unbundle` - delete vendor bundle package __(WARNING: it will result in loading all of vendor packages as seperate requests - use it only if you know what you are doing e.g. when experimenting with HTTP/2 multiplexing/pipelining)__
153
154
154
155
#### Production Bundling (`dist/` folder)
155
156
@@ -159,7 +160,7 @@ Because of this approach it is highly scalable with increasing modules count in
159
160
160
161
`npm run build:vendor` - build app dependencies bundle (only vendor dependencies) - minified, no source-maps
161
162
162
-
`npm run build:debug` - build app sources bundle - debug version with source-maps
163
+
`npm run build:debug` - build app sources bundle - non-minified version with source-maps
0 commit comments