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