diff options
Diffstat (limited to 'src/webpack.config.js')
-rw-r--r-- | src/webpack.config.js | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/src/webpack.config.js b/src/webpack.config.js index 07517b8..01c91e6 100644 --- a/src/webpack.config.js +++ b/src/webpack.config.js @@ -1,10 +1,10 @@ -const path = require('path'); -const ExtractTextPlugin = require("extract-text-webpack-plugin"); +const path = require('path') +const ExtractTextPlugin = require("extract-text-webpack-plugin") const UglifyJSPlugin = require('uglifyjs-webpack-plugin') const extractSass = new ExtractTextPlugin({ filename: `even.min.css` -}); +}) module.exports = { devtool: 'source-map', @@ -26,31 +26,22 @@ module.exports = { test: /\.scss$/, use: extractSass.extract({ use: [{ - loader: 'css-loader', - options: { - minimize: true, - sourceMap: true - } + loader: 'css-loader', options: {minimize: true, sourceMap: true} }, { - loader: 'sass-loader', - options: { - sourceMap: true - } + loader: 'postcss-loader', options: {sourceMap: true} + }, { + loader: 'sass-loader', options: {sourceMap: true} }], fallback: 'style-loader' }) }, { test: /iconfont\.(woff|woff2|eot|ttf|otf|svg)$/, - use: [ - 'file-loader?name=[path][name].[ext]?hash=[hash:7]' - ] + use: ['file-loader?name=[path][name].[ext]?hash=[hash:7]'] }, { test: /apple-chancery-webfont\.(woff|woff2|eot|ttf|otf|svg)$/, - use: [ - 'file-loader?name=[path][name].[ext]' - ] + use: ['file-loader?name=[path][name].[ext]'] } ] }, |