Upgrade to webpack 4, import global CSS, choose next free port
10.3.0 (2018-04-09)
With this release we are upgrading webpack to version 4. π
Some other notable changes:
- We now support loading CSS files with a "global" mode, to allow to bypass the CSS-Modules naming mechanism, so that you can import CSS libraries and use the classnames that they export without having to worry about them being renamed. (4d9b36f)
- Unless otherwise configured, Hops will now use the next free port, starting at
8080
.
You can override this behaviour by either specifying thePORT
environment variable or by setting aport
explicitly in hops-config. See (62b9b77) and (4a079b8)
Bug Fixes
- build: raise node-mocks-http version to ensure res.locals being set (e5ae186)
- build: do not break build on webpack warnings (0c1518f)
- build-config: make service worker plugin async via tapAsync (f230ffc)
- build-config: make webmanifest loader webpack 4 compatible (1c398ee)
- build-config: use [name]-[chunkhash] as chunk names (83021d4)
- react: do not throw error when no options are passed (e5bffdd)
- spec: re-enable CSS build test (832cf04)
Features
- build-config: add CSS optimizer plugin to minify assets (236e127)
- build-config: get rid of manifest plugin, simplify config loader (70aa374)
- build-config: introduce global css mode (4d9b36f)
- build-config: tweak Webpack configs for v4 (b28a787)
- build-config: update to latest alpha of extract text plugin (823b562)
- build-config: update webpack to v4 (eafe4f2)
- build-config: switch to mini-css-extract-plugin (37d5b8f), closes webpack-contrib/extract-text-webpack-plugin/#731
- config: port defaults to
PORT
environment variable (4a079b8) - express: choose next free port when hops-config.port is falsy (62b9b77)
- graphql: add "--header/-H" CLI option to introspect command (671193d)
- graphql: Generate fragment types from schema file (5d86841)