aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-09 21:16:34 +0300
committerGravatar Vitaly Takmazov2018-05-09 21:16:34 +0300
commit5f43e7abf25511b35e495f8495ce0a23131779e0 (patch)
tree172c8ae1317fc82e20871d1ffe8d12779157af33
parente066cf5e3783dd4c0b15f9663fc89e9943df221a (diff)
www: fix autoprefixer configuration
-rw-r--r--juick-www/webpack.config.js28
1 files changed, 18 insertions, 10 deletions
diff --git a/juick-www/webpack.config.js b/juick-www/webpack.config.js
index 3817b7cd..b1e53ece 100644
--- a/juick-www/webpack.config.js
+++ b/juick-www/webpack.config.js
@@ -5,11 +5,11 @@ const StyleLintPlugin = require('stylelint-webpack-plugin')
module.exports = {
devtool: 'source-map',
entry: {
- "scripts" : [
+ "scripts": [
__dirname + "/src/main/assets/scripts.js",
require.resolve('evil-icons/assets/evil-icons.js')
],
- "style" : [
+ "style": [
__dirname + "/src/main/assets/style.css",
require.resolve('evil-icons/assets/evil-icons.css'),
require.resolve('awesomplete/awesomplete.css')
@@ -21,14 +21,22 @@ module.exports = {
},
module: {
rules: [
- { test: /\.jsx?$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { failOnWarning: false, failOnError: true, fix: true }},
- { test: /\.js$/, loader: 'babel-loader', query: { presets: ['env'] }},
- { test: /\.css$/, loader: ExtractTextPlugin.extract({ fallback: "style-loader",
- use: [ "css-loader", { loader: "postcss-loader", options: {
- plugins: () => [
- require('autoprefixer')
- ]
- } }] }) },
+ { test: /\.jsx?$/, loader: 'eslint-loader', enforce: 'pre', exclude: /node_modules/, options: { failOnWarning: false, failOnError: true, fix: true } },
+ { test: /\.js$/, loader: 'babel-loader', query: { presets: ['env'] } },
+ {
+ test: /\.css$/, loader: ExtractTextPlugin.extract({
+ fallback: "style-loader",
+ use: ["css-loader", {
+ loader: "postcss-loader", options: {
+ plugins: () => [
+ require('autoprefixer')({
+ browsers: 'last 2 versions, > 1%'
+ })
+ ]
+ }
+ }]
+ })
+ },
{ test: /\.png$/, loader: "url-loader?limit=10000000000" },
{ test: /\.svg$/, loader: "url-loader?limit=10000000000" }
]