]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - app/config/webpack/common.js
1 const path
= require('path');
2 const webpack
= require('webpack');
3 const StyleLintPlugin
= require('stylelint-webpack-plugin');
5 const rootDir
= path
.resolve(__dirname
, '../../../');
7 module
.exports = function () {
10 material: path
.join(rootDir
, './app/Resources/static/themes/material/index.js'),
11 baggy: path
.join(rootDir
, './app/Resources/static/themes/baggy/index.js'),
14 filename: '[name].js',
15 path: path
.resolve(rootDir
, 'web/bundles/wallabagcore'),
16 publicPath: '/bundles/wallabagcore/',
19 new webpack
.ProvidePlugin({
23 'window.jQuery': 'jquery',
26 configFile: '.stylelintrc',
29 context: 'app/Resources/static/themes',
35 jquery: path
.join(rootDir
, 'node_modules/jquery/dist/jquery.js'),