Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ module.exports = {
rules: [
{
test: /\.less$/,
use: ExtractTextPlugin.extract(
use: ExtractTextPlugin.extract({

Choose a reason for hiding this comment

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

And this issue was fixed on my pr #140, look!!

Copy link
Author

Choose a reason for hiding this comment

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

Look at #127 then.

Choose a reason for hiding this comment

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

Oh my!!! This is need be update

fallbackLoader: 'style-loader',
loaders: [
use: [

Choose a reason for hiding this comment

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

This is right man!! Take a time for read little more about features webpack 2, because all examples described on README are using webpack 2 and in webpack 2, it's used rules array for loaders instead loaders array. So, with rules you can use use array, like recommend for webpack, for to set the loaders, or you can use loaders array or loader for a single loader.

Copy link
Author

Choose a reason for hiding this comment

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

I'm using Webpack ^2.2.0 and "loaders" is not valid.

Choose a reason for hiding this comment

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

Because needs use rules with use for loader on webpack 2

// activate source maps via loader query
{
loader: 'css-loader',
Expand All @@ -147,7 +147,7 @@ module.exports = {
options: { sourceMap: true }
}
]
)
})
}
]
},
Expand Down