aboutsummaryrefslogtreecommitdiff
path: root/webpack.config.js
diff options
context:
space:
mode:
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')()
]
}
}