diff options
author | dominik-zeglen <flesz3@o2.pl> | 2017-09-25 15:10:22 +0200 |
---|---|---|
committer | dominik-zeglen <flesz3@o2.pl> | 2017-09-25 16:45:28 +0200 |
commit | 9b2e0b681da8d75f31a5eb356f05dd450a5f206f (patch) | |
tree | 20edeb208ba05d722de7071dc3c8ebae22bd9996 | |
parent | cbd893efe585cada9d6d828301908015193f225f (diff) | |
download | saleor-frontend-9b2e0b681da8d75f31a5eb356f05dd450a5f206f.tar.gz saleor-frontend-9b2e0b681da8d75f31a5eb356f05dd450a5f206f.tar.bz2 saleor-frontend-9b2e0b681da8d75f31a5eb356f05dd450a5f206f.zip |
Rewrite code to be more aesthetic
-rw-r--r-- | postcss.config.js | 5 | ||||
-rw-r--r-- | webpack.config.js | 31 |
2 files changed, 26 insertions, 10 deletions
diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index b122ab56..00000000 --- a/postcss.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - plugins: [ - require('autoprefixer') - ] -}; diff --git a/webpack.config.js b/webpack.config.js index a85839c7..b9d33d43 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,6 +3,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin'); var FaviconsWebpackPlugin = require('favicons-webpack-plugin'); var path = require('path'); var webpack = require('webpack'); +var autoprefixer = require('autoprefixer'); var resolve = path.resolve.bind(path, __dirname); @@ -84,11 +85,31 @@ var config = { }, { test: /\.scss$/, - loader: ExtractTextPlugin.extract([ - 'css-loader?sourceMap', - 'postcss-loader?sourceMap', - 'sass-loader?sourceMap' - ]) + loader: ExtractTextPlugin.extract({ + use: [ + { + loader: 'css-loader', + options: { + 'sourceMap': true + } + }, + { + loader: 'postcss-loader', + options: { + 'sourceMap': true, + 'plugins': function () { + return [autoprefixer] + } + } + }, + { + loader: 'sass-loader', + options: { + 'sourceMap': true + } + } + ] + }) }, { test: /\.(eot|otf|png|svg|jpg|ttf|woff|woff2)(\?v=[0-9.]+)?$/, |