silverstripe-webpack/webpack.configuration.js

11 lines
326 B
JavaScript
Raw Normal View History

2018-02-22 14:39:58 +01:00
/*
2018-06-23 12:27:06 +02:00
* Load webpack configuration from app/_config/webpack.yml
2018-02-22 14:39:58 +01:00
*/
2018-04-21 06:29:32 +02:00
const path = require('path');
const fs = require('fs');
const yaml = require('js-yaml');
2018-06-23 12:27:06 +02:00
const conf = yaml.safeLoad(fs.readFileSync(path.join(__dirname, 'app/_config/webpack.yml'), 'utf8'));
2018-02-05 12:11:01 +01:00
2018-06-23 12:27:06 +02:00
module.exports = conf['Site\\Templates\\WebpackTemplateProvider'];