Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Refine Webpack watch + build functions #1205

Merged
merged 1 commit into from
Jan 18, 2018
Merged

Refine Webpack watch + build functions #1205

merged 1 commit into from
Jan 18, 2018

Conversation

conorbarclay
Copy link
Contributor

@conorbarclay conorbarclay commented Jan 11, 2018

Related to #1202 and #1204.

I have no idea how I didn't see this before, but if you console.log(webpackConfig) in the current webpack.watch function, it returns undefined -- meaning no config passed in to the watcher, and no transforms on any .js files, hence the errors referenced above.

This PR moves the config into the scope of the webpack object, and adds a bit of sugar/cleanup otherwise. Also -- the 'exclude' option is now set so that the Foundation .js files are always transpiled down to ES5 (as opposed to just in production), as I noticed syntax errors pop up while testing in IE10 and 11 during --dev.

@dgobnto
Copy link
Contributor

dgobnto commented Jan 12, 2018

This solved the issues I was having. Thank you so much @conorbarclay!

@colin-marshall colin-marshall merged commit 6c60543 into olefredrik:master Jan 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants