Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PLAT-44298: Resolve serving issues #89

Merged
merged 4 commits into from
Aug 18, 2017
Merged

PLAT-44298: Resolve serving issues #89

merged 4 commits into from
Aug 18, 2017

Conversation

JayCanuck
Copy link
Member

Remove ExtractTextPlugin usage in development builds to avoid webpack-contrib/extract-text-webpack-plugin#579 It's not necessary in development phase of lifecycle anyway.

Additionally updated the configs to use relative package-level loaders.

Enact-DCO-1.0-Signed-off-by: Jason Robitaille jason.robitaille@lge.com

…quired for isomorphic builds. Alternatively, in the serve command, modify the config to not use the extract-text-webpack-plugin.
@@ -186,7 +186,8 @@ module.exports = {
'last 4 versions',
'Firefox ESR',
'not ie < 9' // React doesn't support IE8 anyway.
]
],
flexbox: 'no-2009'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's up with this change?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a prop that was accidentally omitted last release (change already exists within production config). Just brings up to parity.

const enact = require(path.resolve('./package.json')).enact || {};
const autoprefixer = require('autoprefixer');
const LessPluginRi = require('resolution-independence');
config.module.rules[4] = {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we "find" the index here (and below) rather than hard coding it? Might save us from accidentally breaking this without noticing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not easily given the loader name itself is dynamic generated from extract-text-plugin. If we want a more complex detection system I can implement that, though given we control the config and this is solely a serve fix for an issue actively being worked on by the webpack team, the impact potential is very very small. Probably will be removed next enact-dev update.

Copy link
Contributor

@aarontam aarontam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@aarontam aarontam merged commit 602105d into develop Aug 18, 2017
@aarontam aarontam deleted the feature/PLAT-44298 branch August 18, 2017 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants