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

Upgrade to Webpack 2 #80

Merged
merged 11 commits into from
Mar 27, 2017
Merged

Upgrade to Webpack 2 #80

merged 11 commits into from
Mar 27, 2017

Conversation

richardscarrott
Copy link
Member

@richardscarrott richardscarrott commented Mar 25, 2017

Reason being, webpack config tests blow up in jsdom because of require('uglify-js'), and it just so happens that the existing frontend tests work in Node.

  • Review old config in case something was missed.
  • Disable babel es module transpilation in webpack build (still needed for jest)
  • Change to two spacing (with prettier) -- stuck with 4 spacing for now but reformatted with latest prettier.
  • Remove case insensitive file extension rules.
  • Update README to read 'Webpack 2'
  • Use babel-preset-env - Uglify doesn't support es6 so not useful currently.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 99.275% when pulling 9bbcafd on webpack2 into 036076f on master.

}

return {
[name]: [`./${name}`]
Copy link
Member Author

Choose a reason for hiding this comment

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

does this need to be an array?

// and it just so happens that the existing frontend tests work in Node.
// - Review old config in case something was missed.
// - Disable babel es module transpilation in webpack build (still needed for jest)
// - Change to two spacing (with prettier)
Copy link
Member Author

Choose a reason for hiding this comment

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

Delete me (TODOs are now in PR)

limit: 10000
}
};
};
Copy link
Member Author

Choose a reason for hiding this comment

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

Could use implicit return in these simple loaders

filename: revision ? '[name].[chunkhash].js' : '[name].js',
libraryTarget: node ? 'commonjs2' : 'var',
publicPath
},
Copy link
Member Author

Choose a reason for hiding this comment

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

Move output to own module?


return {
name: name,
target: node ? 'node' : 'web',
Copy link
Member Author

@richardscarrott richardscarrott Mar 25, 2017

Choose a reason for hiding this comment

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

Move target to own module? (basically anything that isn't static?)

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling d7955ea on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling 7db4db2 on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling 1f51415 on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling f1724b8 on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling d3c263e on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.6%) to 98.571% when pulling 5d07613 on webpack2 into 036076f on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.8%) to 98.4% when pulling 1c9d518 on webpack2 into 036076f on master.

@richardscarrott richardscarrott merged commit 121a96f into master Mar 27, 2017
@richardscarrott richardscarrott deleted the webpack2 branch March 27, 2017 16:08
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.

2 participants