silverstripe-cms/webpack-dev.config.js
2017-05-12 14:38:05 +12:00

11 lines
224 B
JavaScript

const webpack = require('webpack');
const Config = require('./webpack.config');
if (Array.isArray(Config)) {
for (var i = 0; i < Config.length; i++) {
Config[i].devtool = 'source-map';
}
}
module.exports = Config;