updating latest
This commit is contained in:
20
gulpfile.js
Normal file
20
gulpfile.js
Normal 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,
|
||||
};
|
||||
Reference in New Issue
Block a user