aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-11-11 10:05:47 +0300
committerGravatar Vitaly Takmazov2018-11-11 10:05:47 +0300
commit7ed90c6798573f21493fab6a14609505ae0b7db3 (patch)
tree54f98829c3d382ba7d01c98009effb039dd8aa72 /webpack.config.js
parent4cab3d1afe4400016703ce0a8721f42823ac4e40 (diff)
postcss-preset-env
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/webpack.config.js b/webpack.config.js
index 8057ec15..1de2067b 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -30,14 +30,14 @@ module.exports = (env, argv) => {
{
test: /\.css$/,
use: [
- MiniCssExtractPlugin.loader,
+ dev? 'style-loader' : MiniCssExtractPlugin.loader,
{
loader: 'css-loader'
},
{
loader: 'postcss-loader', options: {
plugins: () => [
- require('autoprefixer')({})
+ require('postcss-preset-env')()
]
}
}