-
Notifications
You must be signed in to change notification settings - Fork 43
Upgrade webpack #86
Upgrade webpack #86
Conversation
Fixes #83
package.json
Outdated
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^20.0.4", | ||
"node-sass": "~3.12.1", | ||
"postcss-loader": "^0.13.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused
@@ -34,7 +34,7 @@ function storeApplicationMetaData (appName, key, value) { | |||
}).then(throwIfNotSuccess); | |||
} | |||
|
|||
module.exports = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all of these import/export
changes were because webpack complained
@@ -1,9 +1,12 @@ | |||
{ | |||
"presets": ["react", "es2015", "stage-2"], | |||
"presets": ["react", ["es2015", {"modules": false}], "stage-2"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
might consider preset-env
?
@sveisvei did you test it? Afraid we might hit webpack-contrib/extract-text-webpack-plugin#548 (comment) |
"build:html": "cp public/*.html dist/.", | ||
"build:ico": "cp public/*.ico dist/.", | ||
"build:img": "cp public/*.png dist/public/.", | ||
"start": "NODE_ENV=development webpack-dev-server --config webpack.config.js --progress --colors", | ||
"start": "NODE_ENV=development webpack-dev-server --progress --colors --display-optimization-bailout", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
webpack-dev-server says Unknown argument: display-optimization-bailout
!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't actually test that... It can be removed, it's really just useful for production
Fixes #83
You should probably test this properly before merge.
A build works, and the dev server started, but I didn't start up the API, so haven't tested navigating