silverstripe-webpack/webpack.configuration.js
2018-06-23 17:27:06 +07:00

11 lines
326 B
JavaScript
Executable File

/*
* Load webpack configuration from app/_config/webpack.yml
*/
const path = require('path');
const fs = require('fs');
const yaml = require('js-yaml');
const conf = yaml.safeLoad(fs.readFileSync(path.join(__dirname, 'app/_config/webpack.yml'), 'utf8'));
module.exports = conf['Site\\Templates\\WebpackTemplateProvider'];