Привет У меня возникли проблемы при попытке создать исходную карту для s css. Кто-нибудь знает, как это сделать, используя NPM скрипты, а не gulp или webpack? Я предоставил сценарии и зависимости пакета. json file.
{
"name": "index-dev.html",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"watch:sass": "node-sass sass/main.scss css/style.css -w sourcemap = true",
"server": "live-server",
"start": "npm-run-all --parallel server watch:sass",
"compile:sass": "node-sass sass/main.scss css/npm-sheets/style.comp.css",
"concat:css": "concat -o css/npm-sheets/style.concat.css css/external/flickity.min.css css/style.css",
"prefix:css": "postcss --use autoprefixer -b \"last 10 versions\" css/npm-sheets/style.concat.css -o css/npm-sheets/style.prefix.css",
"compress:css": "node-sass css/npm-sheets/style.prefix.css css/style.min.css --output-style compressed",
"build:css": "npm-run-all compile:sass concat:css prefix:css compress:css"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"autoprefixer": "^9.7.6",
"concat": "^1.0.3",
"node-sass": "^4.13.1",
"npm-run-all": "^4.1.5",
"postcss-cli": "^7.1.0"
},
"dependencies": {
"desandro-matches-selector": "^2.0.2",
"ev-emitter": "^1.1.1",
"fizzy-ui-utils": "^2.0.7",
"flickity": "^2.2.1",
"get-size": "^2.0.3",
"gulp-cli": "^2.2.0",
"imagesloaded": "^4.1.4",
"jquery": "^3.4.1",
"source-map": "^0.7.3",
"unidragger": "^2.3.1",
"unipointer": "^2.3.0"
}
}