我的项目结构如下所示:
我的 package.json 看起来像这样:
{
"name": "personal_site",
"version": "1.0.0",
"description": "My personal website.",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node-sass --output-style compressed ./dist/css/bundle.min.css ./src/scss/styles.scss",
"serve": ""
},
"author": "Dean Gibson",
"license": "ISC",
"dependencies": {
"bourbon": "^4.2.6",
"bourbon-neat": "^1.7.4"
},
"devDependencies": {
"node-sass": "^3.4.2"
}
}
但是当我运行时npm build
,它看起来终端正在“思考”并且它停止而没有抛出任何错误。但是什么都没有生成dist/css/
...有什么明显的我在这里做错了吗?
更新:
这很有趣,如果我直接从终端运行那个确切的脚本,那么它工作正常......关于为什么的任何想法?