Łukasz Mierzwa
6251e813e9
Migrate from babel-preset-es2015 to babel-preset-env
...
babel-preset-env is the new recommended module to transform JS code, see babeljs.io/env for details
2017-10-29 17:51:08 -07:00
Łukasz Mierzwa
d5a5425dc5
Enable source map generation in UglifyJsPlugin
...
Looks like it was disabled at some point and depending on the version of webpack it's enabled by default or not:
https://github.com/webpack/webpack/issues/2704#issuecomment-228860162
So it was working with 3.3.0 but now fails with 3.4.1, this PR fixes it
2017-08-08 14:05:32 -07:00
Łukasz Mierzwa
404cc47f5f
Enable source map generation in webpack
...
JS files are minified, enabling source map generation will help with debugging. Sentry can also use source maps for better exceptions.
2017-08-08 11:22:30 -07:00
Łukasz Mierzwa
c5bff9d062
Automatically disable webpack production mode when NODE_ENV=test is set
...
This will speed up local development and CI runs (5s vs 30s)
2017-08-08 11:16:07 -07:00
Łukasz Mierzwa
6bd6f63c7c
Enable node mode in eslint and remove uneeded overrides
2017-07-30 20:19:06 -07:00
Łukasz Mierzwa
0a1443c18f
Enable caching in webpack & babel
...
Saves ~5s per build
2017-07-30 15:53:28 -07:00
Łukasz Mierzwa
2c1ee0eb58
Speedup webpack boundles generation
...
we don't use moment locale and prefetch will speed up bundle generation
2017-07-29 16:50:25 -07:00
Łukasz Mierzwa
f202232be8
Version all bundles
...
This will tell webpack to add a hash to all bundles filenames, we generate script tags for loading those and inject them as templates. No more forced cache bypassing
2017-07-29 16:19:48 -07:00
Łukasz Mierzwa
557c55dc64
Add a bundle for /help page
2017-07-29 14:22:55 -07:00
Łukasz Mierzwa
ca1081f461
Correctly bundle favicon.ico file
2017-07-29 13:52:55 -07:00
Łukasz Mierzwa
8f5c246297
Move to fully webpack managed assets
2017-07-29 13:52:07 -07:00
Łukasz Mierzwa
6105ae87d2
Get rid of last managed assets, everything is in webpack now
2017-07-29 13:51:29 -07:00
Łukasz Mierzwa
b08d203a04
Make is-in-viewport work with webpack
2017-07-29 13:50:55 -07:00
Łukasz Mierzwa
f4397a8bf0
Fix css rules in webpack
2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
56f3b01dac
webpack config
2017-07-29 13:48:36 -07:00