mirror of
https://github.com/silverstripe/silverstripe-frameworktest
synced 2024-10-22 11:06:02 +02:00
e6b49796d8
* DEP Update webpack config and deps * DEP Update code to work with upgraded deps * MNT Run yarn build
19 lines
415 B
JavaScript
19 lines
415 B
JavaScript
const Path = require('path');
|
|
const { JavascriptWebpackConfig } = require('@silverstripe/webpack-config');
|
|
|
|
const PATHS = {
|
|
ROOT: Path.resolve(),
|
|
SRC: Path.resolve('client/src'),
|
|
};
|
|
|
|
const config = [
|
|
// Main JS bundle
|
|
new JavascriptWebpackConfig('js', PATHS, 'silverstripe/frameworktest')
|
|
.setEntry({
|
|
legacy: `${PATHS.SRC}/bundles/legacy.js`,
|
|
})
|
|
.getConfig(),
|
|
];
|
|
|
|
module.exports = config;
|