silverstripe-webpack/webpack.configuration.js

10 lines
327 B
JavaScript
Raw Normal View History

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