Browse Source

Merge pull request #141 from eliperelman/publicpath-docs

Adding documention about web publicPath
v6-dev
Eli Perelman 8 years ago
committed by GitHub
parent
commit
fb95c42890
  1. 7
      docs/presets/neutrino-preset-react/README.md
  2. 7
      docs/presets/neutrino-preset-web/README.md

7
docs/presets/neutrino-preset-react/README.md

@ -121,6 +121,13 @@ manifest.2211d9c1970bbd3c952b.bundle.js 1.41 kB 1 [emitted] manifest
You can either serve or deploy the contents of this `build` directory as a static site.
## Paths
The `neutrino-preset-web` preset loads assets relative to the path of your application by setting Webpack's
[`output.publicPath`](https://webpack.js.org/configuration/output/#output-publicpath) to `./`. If you wish to load
assets instead from a CDN, or if you wish to change to an absolute path for your application, customize your build to
override `output.publicPath`. See the [Customizing](#Customizing) section below.
## Customizing
To override the build configuration, start with the documentation on [customization](../../customization/README.md).

7
docs/presets/neutrino-preset-web/README.md

@ -153,6 +153,13 @@ if (module.hot) {
Using dynamic imports with `import()` will automatically create split points and hot replace those modules upon
modification during development.
## Paths
By default this preset loads assets relative to the path of your application by setting Webpack's
[`output.publicPath`](https://webpack.js.org/configuration/output/#output-publicpath) to `./`. If you wish to load
assets instead from a CDN, or if you wish to change to an absolute path for your application, customize your build to
override `output.publicPath`. See the [Customizing](#Customizing) section below.
## Customizing
To override the build configuration, start with the documentation on [customization](../../customization/README.md).

Loading…
Cancel
Save