-
Notifications
You must be signed in to change notification settings - Fork 2
Upgrade to webpack 4. #111
base: main
Are you sure you want to change the base?
Conversation
| "node": "6.11.4", | ||
| } | ||
| }, | ||
| "modules": "commonjs", |
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.
for some reason, this is the only way I could get the tests to work?! I don't understand why it wasn't necessary for the cli.
| At this point contribution guidelines are limited. This document contains information on setting up and developing locally; otherwise the primary concern for contributors is whether or not you are a member of the Alley Interactive organization (Huron's sponsor). | ||
|
|
||
| ## Development | ||
| There are two primary comonents to Huron: the CLI and the web (browser) script. Since each of these is used for different purposes, there is a different build pipeline for each. |
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 changes in this file are correcting typos
package.json
Outdated
| "handlebars": "^4.0.11", | ||
| "handlebars-loader": "^1.7.0", | ||
| "html-loader": "^0.5.5", | ||
| "html-webpack-plugin": "jantimon/html-webpack-plugin#webpack-4", |
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.
:shakes-fist: jantimon/html-webpack-plugin#860 (comment)
Breaking change with earlier versions of webpack.
goodguyry
left a comment
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.
The inconsistency in console statements' formatting (single-line vs. multi-line) bothers me, but it's obviously non-blocking. Sweet update! 🥇
| "plugins": [ | ||
| "jest" | ||
| ], | ||
| // Do NOT change these rules |
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.
😂🙅🚫💅
config/webpack.browser.config.js
Outdated
| }, | ||
| { | ||
| test: /\.js$/, | ||
| // exclude: /node_modules/, |
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.
🤔 We don't need to exclude node_modules for either of these? If not, I'd say I'd say kill this comment.
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.
we do, this was me debugging, I'm adding it back, good catch 😅
src/cli/actions.js
Outdated
| chalk.red(`Could not delete: ${file.name}`) | ||
| ); | ||
| console.warn( | ||
| chalk.red(`Could not delete: ${file.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.
Should this still be broken out in a separate line?
|
|
||
| if (prototype.length) { | ||
| id = prototype[0]; | ||
| [id] = prototype; |
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.
🔥🎸
src/cli/server.js
Outdated
| info.errors | ||
| ) | ||
| ); | ||
| console.error(chalk.red( |
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.
Here too
| // Requires | ||
| /** @global */ | ||
|
|
||
| // @todo this may be deprecated with webpack 4 |
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.
There still are some places where we are parsing for env.huron so it's not completely but we probably should look at a more webpack 4 way of approaching this.
| 'Webpack encountered warnings during compile: ', info.warnings | ||
| ) | ||
| ); | ||
| console.error(chalk.yellow('Webpack encountered warnings during compile: ', info.warnings)); // eslint-disable-line max-len |
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.
i blame the ide
The directory system not working with the WP implementation that requires a single JSON manifest.
…x-for-postcss-modules
Refactor css modules implementation to point to one file, not a directory
No description provided.