Img文件夹未在dist文件夹中创建

时间:2020-06-29 07:35:10

标签: html node.js npm rendering

当前问题:部署npm run build时,dist文件夹中未创建img文件夹 json封装代码

{
    "start": "npm run watch:all",
    "test": "echo \"Error: no test specified\" && exit 1",
    "lite": "lite-server",
    "scss": "node-sass -o css/ css/",
    "watch:scss": "onchange \"css/*.scss\" -- npm run scss",
    "watch:all": "parallelshell \"npm run watch:scss\" \"npm run lite\" ",
    "clean" : "rimraf dist",
    "copyfonts": "copyfiles -f node_modules/font-awesome/fonts/*dist/fonts",
    "imagemin": "imagemin img/* --out-dir='dist/img'",
    "usemin": "usemin contactus.html -d dist --htmlmin -o
    dist/contactus.html && usemin aboutus.html -d dist --htmlmin -o
    dist/aboutus.html && usemin index.html -d dist --htmlmin -o
    dist/index.html",
    "build": "npm run clean && npm run imagemin && npm run copyfonts &&
    npm run usemin"
}

结果,该网站呈现为无图像。

有人可以帮我吗?

0 个答案:

没有答案