mirror of
https://github.com/wallabag/wallabag.git
synced 2024-11-27 03:21:01 +00:00
64f81bc316
Signed-off-by: Thomas Citharel <tcit@tcit.fr> use scss Signed-off-by: Thomas Citharel <tcit@tcit.fr> fix build, add babel, fix annotations fixes (and improvements !) for baggy add live reload & environments & eslint & theme fixes
40 lines
1 KiB
JavaScript
40 lines
1 KiB
JavaScript
const path = require('path');
|
|
const webpack = require('webpack');
|
|
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
|
|
const rootDir = path.resolve(__dirname, '../../../');
|
|
|
|
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'),
|
|
publicPath: '/bundles/wallabagcore/',
|
|
},
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
$: 'jquery',
|
|
jQuery: 'jquery',
|
|
'window.$': 'jquery',
|
|
'window.jQuery': 'jquery'
|
|
}),
|
|
new StyleLintPlugin({
|
|
configFile: '.stylelintrc',
|
|
failOnError: false,
|
|
quiet: false,
|
|
context: 'app/Resources/static/themes',
|
|
files: '**/*.scss',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
jquery: path.join(rootDir, 'node_modules/jquery/dist/jquery.js')
|
|
}
|
|
},
|
|
};
|
|
};
|