framework/js/webpack.config.js
2020-04-18 09:06:50 -04:00

25 lines
511 B
JavaScript
Executable File

const config = require('flarum-webpack-config');
const webpack = require('webpack');
const merge = require('webpack-merge');
module.exports = merge(config(), {
output: {
library: 'flarum.core',
},
// use zepto instead of jquery
module: {
rules: [
{
test: require.resolve('zepto'),
use: 'imports-loader?this=>window',
},
],
},
resolve: {
alias: {
jquery: 'zepto',
},
},
});