1
0
mirror of https://github.com/ascribe/onion.git synced 2024-12-23 01:39:36 +01:00
Commit Graph

13 Commits

Author SHA1 Message Date
Brett Sun
ba62734bdb Move S3 settings to environment variables 2016-06-24 16:14:16 +02:00
Brett Sun
3291af0812 Specify webpack build is intended for browser 2016-06-24 13:46:30 +02:00
Brett Sun
2ddb9ebd4a Add webpack resolve aliasing to dedupe packages installed through npm link 2016-06-24 13:46:09 +02:00
Brett Sun
c0ddea975a Remove IE8 support from UglifyJS 2016-06-15 13:00:51 +02:00
Brett Sun
c0be5e0b6c Explicitly ask for sourceMaps from UglifyJS
Otherwise breaks on webpack2-beta.9+
2016-06-15 12:58:36 +02:00
Brett Sun
7610d74c4c Add separate extract build command and disable it by default on development
Using ExtractTextPlugin disables hot reloading for CSS, so we only
enable it in production.
2016-06-03 18:06:51 +02:00
Brett Sun
c13a24a107 Add dedupe webpack plugin for production builds 2016-06-03 13:26:44 +02:00
Brett Sun
173d3d19b7 Always build with /static as the public path for the assets 2016-06-03 13:26:43 +02:00
Brett Sun
42d35e7807 Fix ESLint errors on server and dev server 2016-06-03 13:26:39 +02:00
Brett Sun
2921c2adac Handle dependencies that should be split from the main app
Using ES6’s System.import allows webpack to split up the dependency
into its own chunk and load it as necessary. When this is not possible
(ie. when a script expects itself to be dropped into the html), follow
the previous strategy of copying the dependency folder into the build
folder.
2016-06-02 17:14:58 +02:00
Brett Sun
7eaa3b1a2b Inject environment variables into app
Injects environment variables into the app through webpack, rather than
script snippets in index.html.

As part of this:

* Updated server.js to use node’s path package to resolve file paths
* Ensure that all url environment variables passed to the app don’t
have a trailing slash, allowing for cleaner template urls

**Note**: There are still a number of constants that should be taken
out of the app and put into environment variables.
2016-06-02 17:14:58 +02:00
Brett Sun
1b52749f9d Generate index.html using webpack
Allows webpack to generate the js and css tags rather than hard coding
them in
2016-06-02 17:14:58 +02:00
Brett Sun
bd2895afa0 Add webpack config
Notable changes:

* Updated to babel 6
* Updated polyfills to only include core-js/es6 and core-js/stage/4
rather than entire babel/polyfill set
* Dev server with hot reloading replaces server.js in development
* Updated bootstrap loading to be separate from app’s stylesheets
* Cleaned up some of the font dependencies, removing the need for
templating their paths
2016-06-02 17:14:58 +02:00