mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
24 lines
477 B
JavaScript
Executable File
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',
|
|
},
|
|
},
|
|
});
|