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

6 Commits

Author SHA1 Message Date
Brett Sun
4683ae6b17 Fix OTS font parsing errors during development
Caused by not using the ExtractTextPlugin for development.
2016-06-08 13:11:52 +02:00
Brett Sun
ab946abfbc Suppress build info for dev server 2016-06-03 16:02:34 +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
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
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