@skylineos/videojs-clsp
Version:
Video JS plugin for Skyline Technology Solutions' CLSP Player - https://github.com/skylineos/clsp-player
35 lines (29 loc) • 753 B
JavaScript
;
const webpack = require('webpack');
const webpackConfigs = require('./webpack.common');
function devConfig (webpackConfig) {
return {
...webpackConfig,
mode: 'development',
devtool: 'eval-source-map',
output: {
...webpackConfig.output,
pathinfo: true,
},
plugins: [
...webpackConfig.plugins,
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify('development'),
},
}),
],
};
}
module.exports = function () {
const configs = webpackConfigs().map((webpackConfig) => devConfig(webpackConfig));
// Remove the CLSP VideoJS Plugin config
// We ONLY want the demo pages to be built in dev mode
configs.pop();
return configs;
};