21 lines
510 B
JavaScript
21 lines
510 B
JavaScript
const copy = require('@neutrinojs/copy');
|
|
|
|
const splitConfig = require('../../config/split-config');
|
|
const pkg = require('./package.json');
|
|
|
|
const clientMains = [
|
|
'client',
|
|
];
|
|
|
|
module.exports = splitConfig(pkg, clientMains);
|
|
|
|
module.exports[0].use.push(copy({
|
|
patterns: ['index.js', 'index.ejs', 'latus.js'].map((path) => ({
|
|
from: `src/client/${path}`,
|
|
to: 'client',
|
|
})).concat(['.neutrinorc.js', 'webpack.config.js'].map((path) => ({
|
|
from: `src/build/${path}`,
|
|
to: 'build',
|
|
}))),
|
|
}));
|