getvma's avatar
Level 49

SB-Admin to Laravel Mix (is it possible with little effort?) incl npm error below

Here is the package.json for it. I am wondering if someone with more experience is capable of taking a glance at this and can recommend additions or declaration in laravel-mix that would allow just the build of the scss.. preferably bypassing their scripts and going directly to their scss file.

Any assistance is appreciated...

{
    "title": "SB Admin Pro",
    "name": "sb-admin-pro",
    "version": "1.1.2",
    "scripts": {
        "build": "npm run clean && npm run build:pug && npm run build:scss && npm run build:scripts && npm run build:assets",
        "build:assets": "node scripts/build-assets.js",
        "build:pug": "node scripts/build-pug.js",
        "build:scripts": "node scripts/build-scripts.js",
        "build:scss": "node scripts/build-scss.js",
        "clean": "node scripts/clean.js",
        "start": "npm run build && node scripts/start.js",
        "start:debug": "npm run build && node scripts/start-debug.js"
    },
    "description": "A premium admin dashboard theme based on Bootstrap 4, created by Start Bootstrap.",
    "keywords": [
        "css",
        "sass",
        "html",
        "responsive",
        "theme",
        "template",
        "admin",
        "app",
        "dashboard"
    ],
    "homepage": "https://shop.startbootstrap.com/product/sb-admin-pro",
    "bugs": {
        "email": "[email protected]"
    },
    "license": "SEE_LICENSE",
    "author": "Start Bootstrap",
    "contributors": [
        "David Miller (http://davidmiller.io/)"
    ],
    "repository": {
        "type": "git",
        "url": "https://github.com/StartBootstrap/sb-admin-pro.git"
    },
    "dependencies": {
        "bootstrap": "4.4.1"
    },
    "devDependencies": {
        "autoprefixer": "9.7.4",
        "browser-sync": "2.26.7",
        "chokidar": "3.3.1",
        "concurrently": "5.1.0",
        "postcss": "7.0.27",
        "prettier": "1.19.1",
        "pug": "2.0.4",
        "sass": "1.26.0",
        "shelljs": "0.8.3",
        "upath": "1.2.0"
    }
}

This the error I get.

ERROR in multi ./node_modules/laravel-mix/src/builder/mock-entry.js ./resources/sass/style.scss
Module not found: Error: Can't resolve 'C:\Users\Victor\code\c32\resources\sass\style.scss' in 'C:\Users\Victor\code\c32'
 @ multi ./node_modules/laravel-mix/src/builder/mock-entry.js ./resources/sass/style.scss mix[1]

0 likes
1 reply
getvma's avatar
Level 49

Just added the error to the original post...

Please or to participate in this conversation.