2017-08-16 05:37:11 +02:00
|
|
|
const Path = require('path');
|
2022-12-18 22:20:07 +01:00
|
|
|
const { JavascriptWebpackConfig } = require('@silverstripe/webpack-config');
|
2017-11-06 04:56:59 +01:00
|
|
|
|
2016-09-29 02:39:07 +02:00
|
|
|
const PATHS = {
|
2017-08-16 05:37:11 +02:00
|
|
|
ROOT: Path.resolve(),
|
|
|
|
SRC: Path.resolve('client/src'),
|
2016-09-29 02:39:07 +02:00
|
|
|
};
|
|
|
|
|
2017-08-16 05:37:11 +02:00
|
|
|
const config = [
|
2022-12-18 22:20:07 +01:00
|
|
|
// Main JS bundle
|
|
|
|
new JavascriptWebpackConfig('js', PATHS, 'silverstripe/frameworktest')
|
|
|
|
.setEntry({
|
|
|
|
legacy: `${PATHS.SRC}/bundles/legacy.js`,
|
|
|
|
})
|
|
|
|
.getConfig(),
|
2017-08-16 05:37:11 +02:00
|
|
|
];
|
2016-09-29 02:39:07 +02:00
|
|
|
|
2022-12-18 22:20:07 +01:00
|
|
|
module.exports = config;
|