-
-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Description
Using Webpack 2 with postcss-loader 1.0 produces:
TypeError: Cannot read property 'config' of null
at .../node_modules/postcss-load-config/index.js:50:22
Is my webpack.config.js syntax in order?
module: {
rules: [
{
test: /\.jsx?$/,
include: paths.src,
use: {
loader: 'babel'
}
},
{
test: /\.s?css/,
use: [
{
loader: 'style-loader',
options: {
sourceMap: true
}
},
{
loader: 'css-loader',
options: {
importLoaders: 1,
modules: true,
localIdentName: '[path]_[name]_[local]_[hash:base64:5]'
}
},
{
loader: 'postcss-loader',
options: {
sourceMap: true,
plugins: () => []
},
{
loader: 'sass-loader',
options: {
sourceMap: true
}
}
]
}
Metadata
Metadata
Assignees
Labels
No labels