silverstripe-webpack/webpack.configuration.js
2018-02-22 20:39:58 +07:00

10 lines
307 B
JavaScript
Executable File

/*
* Load webpack configuration from site/_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, "site/_config/webpack.yml"), "utf8"));
module.exports = conf.WebpackTemplateProvider;