mirror of
https://github.com/a2nt/silverstripe-webpack.git
synced 2024-10-22 17:05:31 +02:00
12 lines
513 B
JavaScript
Executable File
12 lines
513 B
JavaScript
Executable File
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 = {
|
|
SRC: path.join(__dirname, conf.WebpackTemplateProvider.src),
|
|
BUILD: path.join(__dirname, conf.WebpackTemplateProvider.dist),
|
|
PAGES: path.join(__dirname, conf.WebpackTemplateProvider.pages),
|
|
HOSTNAME: conf.WebpackTemplateProvider.hostname,
|
|
PORT: conf.WebpackTemplateProvider.port
|
|
}; |