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

Conversation

@pirelenito
Copy link
Member

No description provided.

- `font`
- `image`
- `javaScript`
- `json`
Copy link
Member

Choose a reason for hiding this comment

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

Why should this be removed?

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 is no longer needed in webpack 2. They do it by default.

// To ensure hashes are generated based on the file contents, use webpack-md5-hash plugin.
...(action === actions.BUILD ? [new WebpackMd5Hash()] : []),

// Use "OccurrenceOrderPlugin" in order to make build deterministic.
Copy link
Member

Choose a reason for hiding this comment

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

I’m assuming this are Webpack defaults now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Exactly!

// Should first try to resolve loaders nested within Sagui.
// This fixes an issue in NPM v2 where webpack incorrectly
// thinks that the package `eslint` is the `eslint-loader`
modulesDirectories: [
Copy link
Member

Choose a reason for hiding this comment

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

The comments points out to an npm 2 problem, but I imagine npm 2 is super deprecated at this point. Is this in general necessary?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, maybe we can update it. I think it is still a safe bet to be explicit about where to look for loaders.

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough, just updating the comment for now should do.

use: [
{
loader: 'file-loader',
options: {
Copy link
Member

Choose a reason for hiding this comment

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

Such readability, wow.

Copy link
Member Author

Choose a reason for hiding this comment

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

hehe

@pirelenito pirelenito merged commit 568c9dd into v9 Apr 7, 2017
@pirelenito pirelenito deleted the migration-to-webpack-2 branch April 7, 2017 21:14
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