mirror of
https://github.com/elyby/accounts-frontend.git
synced 2025-05-31 14:11:58 +05:30
Отключил минификацию цветов cssnano, которая портила выражения composes: black from ./buttons.scss;. Настроил лоадер для правильного резолвинга модулей для таких выражений
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user