-
Notifications
You must be signed in to change notification settings - Fork 12
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
Conversation
tasks/build/createConfig/entry.js
Outdated
} | ||
|
||
return { | ||
[name]: [`./${name}`] |
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.
does this need to be an array?
tasks/build/createConfig/index.js
Outdated
// 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) |
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.
Delete me (TODOs are now in PR)
limit: 10000 | ||
} | ||
}; | ||
}; |
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.
Could use implicit return in these simple loaders
filename: revision ? '[name].[chunkhash].js' : '[name].js', | ||
libraryTarget: node ? 'commonjs2' : 'var', | ||
publicPath | ||
}, |
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.
Move output to own module?
tasks/build/createConfig/index.js
Outdated
|
||
return { | ||
name: name, | ||
target: node ? 'node' : 'web', |
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.
Move target to own module? (basically anything that isn't static?)
Revert jest testEnv to 'jsdom' and setup another test suite for node tests.-- Revert testEnv back to jsdom and use docblock to define node in webpack config tests #81