chore: webpack 5
This commit is contained in:
parent
dd6422e8da
commit
77c3e21208
|
@ -1,21 +0,0 @@
|
|||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
const copy = require('@neutrinojs/copy');
|
||||
|
||||
module.exports = async (flecks) => {
|
||||
// eslint-disable-next-line global-require
|
||||
const config = await require('@flecks/web/server/build/web.neutrinorc')(flecks);
|
||||
|
||||
config.use.push(
|
||||
copy({
|
||||
copyUnmodified: true,
|
||||
patterns: [
|
||||
{
|
||||
from: 'icon.png',
|
||||
to: 'web/assets/icon.png',
|
||||
},
|
||||
],
|
||||
}),
|
||||
);
|
||||
|
||||
return config;
|
||||
};
|
17
build/web.webpack.config.js
Normal file
17
build/web.webpack.config.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
const {copy} = require('@flecks/core/server');
|
||||
const configFn = require('@flecks/web/server/build/web.webpack.config');
|
||||
|
||||
module.exports = async (env, argv, flecks) => {
|
||||
const config = await configFn(env, argv, flecks);
|
||||
config.plugins.push(
|
||||
copy({
|
||||
patterns: [
|
||||
{
|
||||
from: 'icon.png',
|
||||
to: 'assets/icon.png',
|
||||
},
|
||||
],
|
||||
}),
|
||||
);
|
||||
return config;
|
||||
};
|
Loading…
Reference in New Issue
Block a user