updating latest

This commit is contained in:
2020-06-03 02:24:10 +01:00
parent 7d3ae345a4
commit 1795693801
5 changed files with 897 additions and 35 deletions

20
gulpfile.js Normal file
View File

@@ -0,0 +1,20 @@
const webpack = require("webpack");
const webpackConfig = require("./webpack.prod");
function buildTheme(cb) {
return new Promise((resolve, reject) => {
webpack(webpackConfig, (err, stats) => {
if (err) {
return reject(err);
}
if (stats.hasErrors()) {
return reject(new Error(stats.compilation.errors.join("\n")));
}
resolve();
});
});
}
module.exports = {
buildTheme: buildTheme,
};