framework/js/webpack.config.js

24 lines
477 B
JavaScript
Executable File

const config = require('./webpack-flarum-config');
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',
},
},
});