nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 35e6e0d0dc2c501b9257a344fdc1b94ee29c5d42
parent 71d857f91cce6486eb29b04f8a8f9e852f2f9e76
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Tue,  3 Dec 2019 21:28:45 +0100

config: move postcss config from separate file to webpack config

Diffstat:
Dwebpack/postcss.config.js | 7-------
Mwebpack/webpack.config.prod.js | 9++++++---
2 files changed, 6 insertions(+), 10 deletions(-)

diff --git a/webpack/postcss.config.js b/webpack/postcss.config.js @@ -1,7 +0,0 @@ -module.exports = { - plugins: { - 'postcss-import': {}, - 'postcss-preset-env': {}, - 'cssnano': {}, - }, -}; diff --git a/webpack/webpack.config.prod.js b/webpack/webpack.config.prod.js @@ -41,9 +41,12 @@ module.exports = merge(common, { { loader: 'postcss-loader', options: { - config: { - path: __dirname + '/postcss.config.js' - } + ident: 'postcss', + plugins: () => [ + require('postcss-import')(), + require('postcss-preset-env')(), + require('cssnano')() + ] } }, ]