Package.json内容:
{
"name": "natours",
"version": "1.0.0",
"description": "Landing page for Natours",
"main": "index.js",
"dependencies": {},
"devDependencies": {
"node-sass": "^4.5.3"
},
"scripts": {
"compile:sass": "node-sass sass/main.scss css/style.css"
},
"author": "A",
"license": "ISC"
在终端上运行'npm run compile:sass'时,结果为:
Rendering Complete, saving .css file...
Wrote CSS to /Users/AfterXII/Desktop/advanced-css-course-
master/Natours/css/style.comp.cssenter code here
但是,实际上没有产生CSS输出。 css / style.css保持为空。
任何明显的我在这里做错了吗?