latus/packages/http/.neutrinorc.js
2020-12-17 02:08:16 -06:00

21 lines
531 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', 'client-plugins.js', 'webpack.config.js'].map((path) => ({
from: `src/build/${path}`,
to: 'build',
}))),
}));