mirror of
https://github.com/wallabag/wallabag.git
synced 2024-12-23 21:51:57 +01:00
38 lines
920 B
JavaScript
38 lines
920 B
JavaScript
const path = require('path');
|
|
const webpack = require('webpack');
|
|
const StyleLintPlugin = require('stylelint-webpack-plugin');
|
|
|
|
const projectDir = path.resolve(__dirname, '../../../');
|
|
|
|
module.exports = {
|
|
entry: {
|
|
material: path.join(projectDir, './assets/material/index.js'),
|
|
public: path.join(projectDir, './assets/_global/share.js'),
|
|
},
|
|
output: {
|
|
filename: '[name].js',
|
|
path: path.resolve(projectDir, 'web/wallassets'),
|
|
publicPath: '',
|
|
},
|
|
plugins: [
|
|
new webpack.ProvidePlugin({
|
|
$: 'jquery',
|
|
jQuery: 'jquery',
|
|
'window.$': 'jquery',
|
|
'window.jQuery': 'jquery',
|
|
}),
|
|
new StyleLintPlugin({
|
|
configFile: 'stylelint.config.js',
|
|
failOnError: false,
|
|
quiet: false,
|
|
context: 'assets',
|
|
files: '**/*.scss',
|
|
}),
|
|
],
|
|
resolve: {
|
|
alias: {
|
|
jquery: path.join(projectDir, 'node_modules/jquery/dist/jquery.js'),
|
|
},
|
|
},
|
|
};
|