1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

Fix linter issue on webpack config files

This commit is contained in:
Jeremy Benoist 2017-06-20 07:14:04 +02:00 committed by Thomas Citharel
parent 38dd2def20
commit 789c46821d
3 changed files with 40 additions and 42 deletions

View file

@ -4,13 +4,12 @@ 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'),
},
output: {
filename: '[name].js',
path: path.resolve(rootDir, 'web/bundles/wallabagcore'),
@ -21,7 +20,7 @@ module.exports = function() {
$: 'jquery',
jQuery: 'jquery',
'window.$': 'jquery',
'window.jQuery': 'jquery'
'window.jQuery': 'jquery',
}),
new StyleLintPlugin({
configFile: '.stylelintrc',
@ -33,8 +32,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'),
},
},
};
};