Browse Source

Merge pull request #220184 in DEC/fineui from release/11.0 to feature/x

* commit 'd897d6035c36609ee1c49ed9fb0c2f5bb0df66d4':
  无jira 去掉grunt
research/test
superman 2 years ago
parent
commit
4a70c1ff3c
  1. 9
      lib/postbuild/postbuild.js
  2. 1
      package.json

9
lib/postbuild/postbuild.js

@ -1,9 +1,9 @@
const { resolve } = require("path");
const { existsSync, mkdirSync, readFileSync, writeFileSync } = require("fs");
const rimraf = require("rimraf");
const grunt = require("grunt");
const concat = require("concat");
const { config } = require("../../webpack/attachments")
const glob = require("glob");
const { config } = require("../../webpack/attachments");
const dest = resolve(__dirname, '../../dist');
@ -25,10 +25,7 @@ const deleteList = [
"2.0/fineui_without_normalize.min.js.map",
"fineui_without_normalize.min.js",
"fineui_without_normalize.min.js.map",
].concat(grunt.file.expand({}, [
"dist/*.css.map",
"dist/**/*.css.map",
]).map(name => name.replace("dist/", "")));
].concat(glob.sync("dist/**/*.css.map").map(name => name.replace("dist/", "")));
deleteList.forEach(filename => {
const sourcefile = resolve(dest, `./${filename}`);

1
package.json

@ -29,7 +29,6 @@
"express": "4.15.2",
"fork-ts-checker-webpack-plugin": "1.4.3",
"glob": "^7.2.0",
"grunt": "^1.0.1",
"html-webpack-plugin": "3.2.0",
"husky": "^3.1.0",
"karma": "3.1.4",

Loading…
Cancel
Save