-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
456 additions
and
16 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,45 @@ | ||
##### To build the app for production: | ||
##### 1. To build the app: | ||
|
||
`nx build store` | ||
|
||
##### To build the app for development: | ||
##### 4. To configure webpack to extract licenses only during production builds: | ||
|
||
In `apps/store/webpack.config.js`: | ||
|
||
```js | ||
module.exports = { | ||
// ... | ||
plugins: [ | ||
// ... | ||
new NxAppWebpackPlugin({ | ||
// ... | ||
extractLicenses: process.env['NODE_ENV'] === 'production', | ||
}), | ||
// ... | ||
], | ||
// ... | ||
}; | ||
``` | ||
|
||
##### 7. To add a development configuration to the build target: | ||
|
||
In `apps/store/project.json`: | ||
|
||
```json | ||
{ | ||
// ... | ||
"targets": { | ||
"build": { | ||
"configurations": { | ||
"development": { | ||
"args": ["--node-env=development"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
``` | ||
|
||
##### 7. To build the app using the development configuration: | ||
|
||
`nx build store --configuration=development` |
Oops, something went wrong.