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
{{ message }}
This repository was archived by the owner on May 17, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,6 @@ The CLI interface for Fusion.js
6
6
7
7
The `fusion-cli` package is responsible for orchestrating compile-time configuration for server and browser bundles, as well as development, test and production variations. It provides a standardized Babel configuration that includes async/await support as well as stage 3+ Ecmascript features.
8
8
9
-
Due to the complexity involved in configuring many permutations of configurations, Fusion.js does not support custom `webpack.config`. This design decision allows Fusion.js to eventually move away from Webpack if faster and better bundlers become available. Additionally, it allows Fusion.js to make changes to the internal webpack configuration without the concern of breaking users customizations. If you run into a situation where you feel you need to make a webpack customization, please reach out to us on [slack](https://join.slack.com/t/fusionjs/shared_invite/enQtMzk3NjM0MTg0MTI4LWJhNzVjYjk5ZDVlYWIxZWViMjA3YzE5OTc4YWZkNzBkZmNkYmJkMDYyOGEzODEwMzRmMWExMzc1NDIzMmY2NDQ) or create an issue describing your use case.
10
-
11
9
The CLI is also responsible for hot module reloading in development mode, and for running the web server.
12
10
13
11
### Installation
@@ -43,6 +41,9 @@ The CLI API can be most easily run through the Yarn or NPX CLI, e.g. `yarn fusio
43
41
-`--log-level`: Log level to output to console `[default: "info"]`
44
42
-`--forceLegacyBuild`: Force enable legacy build. By default not compiled in dev.
45
43
-`--perserve-names`: Disable name mangling during script minification
44
+
-`--no-zofpli`: Disable zopfli compression plugin
45
+
-`--no-brotli`: Disable brotli compression plugin
46
+
-`--no-svgo`: Disable svgo optimization plugin
46
47
47
48
<!--
48
49
* `fusion profile [--environment] [--watch] [--file-count]`: Profile your application
**Please note that custom Babel config is an unstable API and may not be supported in future releases.**
23
-
24
-
25
23
## `assumeNoImportSideEffects`
26
24
27
25
By default this is `false`.
@@ -48,3 +46,41 @@ module.exports = {
48
46
}
49
47
};
50
48
```
49
+
50
+
## `overrideWebpackConfig`
51
+
52
+
Allows to customize [webpack configuration](https://webpack.js.org/concepts).
53
+
54
+
Pass a function that takes a [`webpackConfig`](https://webpack.js.org/configuration/) object created by fusion and return a config with any modifications supported by webpack.
0 commit comments