silverstripe-frameworktest/webpack.config.js
Guy Sartorelli e6b49796d8
DEP Upgrade build stack (#133)
* DEP Update webpack config and deps

* DEP Update code to work with upgraded deps

* MNT Run yarn build
2022-12-19 10:20:07 +13:00

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;