diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2017-06-20 07:14:04 +0200 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2017-06-22 12:13:22 +0200 |
commit | 789c46821db9fbab5bbea99846fa0021d779a592 (patch) | |
tree | adffd8384b4897bb33d18bd7fa81347528ddc2a7 /app/config/webpack/common.js | |
parent | 38dd2def2025acbd001aa0510b838fb5b59fdbde (diff) | |
download | wallabag-789c46821db9fbab5bbea99846fa0021d779a592.tar.gz wallabag-789c46821db9fbab5bbea99846fa0021d779a592.tar.zst wallabag-789c46821db9fbab5bbea99846fa0021d779a592.zip |
Fix linter issue on webpack config files
Diffstat (limited to 'app/config/webpack/common.js')
-rw-r--r-- | app/config/webpack/common.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/app/config/webpack/common.js b/app/config/webpack/common.js index 4f5739f0..1ef193c7 100644 --- a/app/config/webpack/common.js +++ b/app/config/webpack/common.js | |||
@@ -4,13 +4,12 @@ const StyleLintPlugin = require('stylelint-webpack-plugin'); | |||
4 | 4 | ||
5 | const rootDir = path.resolve(__dirname, '../../../'); | 5 | const rootDir = path.resolve(__dirname, '../../../'); |
6 | 6 | ||
7 | module.exports = function() { | 7 | module.exports = function () { |
8 | return { | 8 | return { |
9 | entry: { | 9 | entry: { |
10 | material: path.join(rootDir, './app/Resources/static/themes/material/index.js'), | 10 | material: path.join(rootDir, './app/Resources/static/themes/material/index.js'), |
11 | baggy: path.join(rootDir, './app/Resources/static/themes/baggy/index.js'), | 11 | baggy: path.join(rootDir, './app/Resources/static/themes/baggy/index.js'), |
12 | }, | 12 | }, |
13 | |||
14 | output: { | 13 | output: { |
15 | filename: '[name].js', | 14 | filename: '[name].js', |
16 | path: path.resolve(rootDir, 'web/bundles/wallabagcore'), | 15 | path: path.resolve(rootDir, 'web/bundles/wallabagcore'), |
@@ -21,7 +20,7 @@ module.exports = function() { | |||
21 | $: 'jquery', | 20 | $: 'jquery', |
22 | jQuery: 'jquery', | 21 | jQuery: 'jquery', |
23 | 'window.$': 'jquery', | 22 | 'window.$': 'jquery', |
24 | 'window.jQuery': 'jquery' | 23 | 'window.jQuery': 'jquery', |
25 | }), | 24 | }), |
26 | new StyleLintPlugin({ | 25 | new StyleLintPlugin({ |
27 | configFile: '.stylelintrc', | 26 | configFile: '.stylelintrc', |
@@ -33,8 +32,8 @@ module.exports = function() { | |||
33 | ], | 32 | ], |
34 | resolve: { | 33 | resolve: { |
35 | alias: { | 34 | alias: { |
36 | jquery: path.join(rootDir, 'node_modules/jquery/dist/jquery.js') | 35 | jquery: path.join(rootDir, 'node_modules/jquery/dist/jquery.js'), |
37 | } | 36 | }, |
38 | }, | 37 | }, |
39 | }; | 38 | }; |
40 | }; | 39 | }; |