Merge pull request #13297 from Snuffleupagus/webpack-example-minification-warning
Add a note about minification to the webpack-example README (issue 13290)
This commit is contained in:
commit
2e9c2ab3b8
@ -18,6 +18,12 @@ Refer to the `main.js` and `webpack.config.js` files for the source code.
|
|||||||
Note that PDF.js packaging requires packaging of the main application and
|
Note that PDF.js packaging requires packaging of the main application and
|
||||||
the worker code, and the `workerSrc` path shall be set to the latter file.
|
the worker code, and the `workerSrc` path shall be set to the latter file.
|
||||||
|
|
||||||
|
### Minification
|
||||||
|
|
||||||
|
If you are configuring Webpack to output a minified build, please note that you
|
||||||
|
*must* configure the minifier to keep original class/function names intact;
|
||||||
|
otherwise the build is not guaranteed to work correctly.
|
||||||
|
|
||||||
## Worker loading
|
## Worker loading
|
||||||
|
|
||||||
If you are getting the `Setting up fake worker` warning, make sure you are
|
If you are getting the `Setting up fake worker` warning, make sure you are
|
||||||
|
Loading…
x
Reference in New Issue
Block a user