npm-scripts - package.json 中的 npm 脚本未编译 css
问题描述
{
"name": "job_portal",
"version": "1.0.0",
"main": "index.js",
"devDependencies": {
"bulma": "^0.9.3",
"node-sass": "^6.0.1"
},
"scripts": {
"css-build": "node-sass --omit-source-map-url sass/mystyles.scss css/mystyles.css",
"css-watch": "npm run css-build -- --watch",
"start": "npm run css-watch"
},
"author": "",
"license": "ISC",
"description": ""
}
显示错误:
An output directory must be specified when compiling a directory
解决方案
推荐阅读
- javascript - 如何在角度 6 中单击它时获取 highcharts 中图表的 Div id
- sql-server - 带有变量的 SSIS 多文件加载错误
- spring - 单个弹簧轮廓的多个属性文件
- jquery - 单击一个按钮并使 div 隐藏在可折叠的手风琴中
- c# - C# 中未处理的异常 (System.IO.IOException)
- c# - WindowStartupLocation 开始最小化时被忽略
- javascript - 计算状态中数组的值时超出最大更新深度
- python - 当您在队列中写入并等待您对另一个使用服务总线 azure 的响应时
- mongodb - 如何进行多阶段嵌套聚合?
- sql - 将具有日期时间值的行与同一个表进行比较