]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/config/webpack/common.js
Remove fixed relative path for assets
[github/wallabag/wallabag.git] / app / config / webpack / common.js
index 4f5739f01b11a9d8ad72b4a9579a2c0de21d9e5d..233497fd7b8ce1eb29cd81d23e63898f0b781181 100644 (file)
@@ -4,24 +4,24 @@ const StyleLintPlugin = require('stylelint-webpack-plugin');
 
 const rootDir = path.resolve(__dirname, '../../../');
 
-module.exports = function() {
+module.exports = function () {
   return {
     entry: {
       material: path.join(rootDir, './app/Resources/static/themes/material/index.js'),
       baggy: path.join(rootDir, './app/Resources/static/themes/baggy/index.js'),
+      public: path.join(rootDir, './app/Resources/static/themes/_global/share.js'),
     },
-
     output: {
       filename: '[name].js',
-      path: path.resolve(rootDir, 'web/bundles/wallabagcore'),
-      publicPath: '/bundles/wallabagcore/',
+      path: path.resolve(rootDir, 'web/wallassets'),
+      publicPath: '',
     },
     plugins: [
       new webpack.ProvidePlugin({
         $: 'jquery',
         jQuery: 'jquery',
         'window.$': 'jquery',
-        'window.jQuery': 'jquery'
+        'window.jQuery': 'jquery',
       }),
       new StyleLintPlugin({
         configFile: '.stylelintrc',
@@ -33,8 +33,8 @@ module.exports = function() {
     ],
     resolve: {
       alias: {
-        jquery: path.join(rootDir, 'node_modules/jquery/dist/jquery.js')
-      }
+        jquery: path.join(rootDir, 'node_modules/jquery/dist/jquery.js'),
+      },
     },
   };
 };