aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/config/webpack/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/config/webpack/common.js')
-rw-r--r--app/config/webpack/common.js9
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
5const rootDir = path.resolve(__dirname, '../../../'); 5const rootDir = path.resolve(__dirname, '../../../');
6 6
7module.exports = function() { 7module.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};