silverstripe-frameworktest/webpack.config.js

19 lines
415 B
JavaScript
Raw Normal View History

2017-08-16 05:37:11 +02:00
const Path = require('path');
const { JavascriptWebpackConfig } = require('@silverstripe/webpack-config');
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 = [
// 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
module.exports = config;