我正在尝试使用 npm 将 bootstrap 添加到我的目录。\n这是我的文件结构:
\n\n我在 style.scss 文件中使用 @import
\n@import "../node_modules/bootstrap/scss/bootstrap";\nRun Code Online (Sandbox Code Playgroud)\n我的 package.json 看起来像这样。它基本上是来自此站点的入门小子 -\n minus-static-site-sass-setup
\n{\n"name": "playground",\n"version": "0.1.0",\n"description": "SASS compile|autoprefix|minimize and live-reload dev server using Browsersync for static HTML",\n"main": "public/index.html",\n"author": "5t3ph",\n"scripts": {\n "build:sass": "sass --no-source-map src/sass:public/css",\n "copy:assets": "copyfiles -u 1 ./src/assets/**/* public",\n "copy:html": "copyfiles -u 1 ./src/*.html public",\n "copy": "npm-run-all --parallel copy:*",\n "watch:assets": "onchange \\"/src/assets/**/*\\" -- npm run copy:html",\n "watch:html": "onchange \\"src/*.html\\" -- npm run copy:html",\n "watch:sass": "sass --no-source-map --watch src/sass/:public/css",\n "watch": "npm-run-all --parallel …Run Code Online (Sandbox Code Playgroud)