编译资产(Laravel 混合)不适用于某些依赖项

Compiling Assets (Laravel Mix) doesn't work for some dependencies

目前,我的 package.json 包含一些开发依赖项:

...
"devDependencies": {
    "axios": "^0.15.3",
    "bootstrap-sass": "^3.3.7",
    "cross-env": "^3.2.3",
    "font-awesome": "^4.7.0",
    "jquery": "^2.1.4",
    "laravel-mix": "0.*",
    "lodash": "^4.17.4",
    "unslider": "^2.0.3",
    "vue": "^2.3.2"
},
...

当我第一次使用 npm run dev 编译所有依赖项时,一切正常。

然后,我尝试安装一些其他依赖项,如 unslider,如您所见。但是现在,我不明白为什么这个包没有编译到我的 app.js / app.css 中。我错过了什么?

查看github中的包后,您必须添加:

resources/assets/sass/app.scss:

@import "node_modules/unslider/src/scss/unslider.scss"

resources/assets/js/app.js:

require('unslider');