|
|
|
@ -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}`); |
|
|
|
|