Отключил минификацию цветов cssnano, которая портила выражения composes: black from ./buttons.scss;. Настроил лоадер для правильного резолвинга модулей для таких выражений

This commit is contained in:
SleepWalker
2016-01-09 13:55:09 +02:00
parent 6f742ea22a
commit 8bb485d1e0

View File

@@ -102,7 +102,7 @@ var webpackConfig = {
{ {
test: /\.scss$/, test: /\.scss$/,
extractInProduction: true, extractInProduction: true,
loader: 'style!css?modules&localIdentName=[path][name]-[local]!postcss!sass' loader: 'style!css?modules&importLoaders=2&localIdentName[=path][name]-[local]!postcss!sass'
}, },
{ {
test: /\.jsx?$/, test: /\.jsx?$/,
@@ -137,6 +137,9 @@ var webpackConfig = {
browsers: ['last 2 versions'] browsers: ['last 2 versions']
}, },
safe: true, safe: true,
// отключаем минификацию цветов, что бы она не ломала такие выражения:
// composes: black from './buttons.scss';
colormin: false,
discardComments: { discardComments: {
removeAll: true removeAll: true
} }