を含めるようにSASS-ローダーを設定:1.0.0-beta.15:角度-cliのインクルードパス
ノード:6.5.0
OS:Linuxのx64の
私が欲しいですアプリの中にそれを置くことによってbootstrap-material-design
V4-devの枝からSCSSファイルをコンパイルする[0] angular-cli.json
の[]配列を.stylesが、私は次のエラーを取得:
ERROR in ./~/css-loader!./~/postcss-loader!./~/sass-loader!./~/bootstrap-material-design/scss/bootstrap-material-design.scss
Module build failed:
@import "bootstrap/scss/variables"; // from bootstrap node_module
^
File to import not found or unreadable: bootstrap/scss/variables
Parent style sheet: /home/ciesielskico/Documents/Git/reports/node_modules/bootstrap-material-design/scss/_variables.scss
in /home/ciesielskico/Documents/Git/reports/node_modules/bootstrap-material-design/scss/_variables.scss (line 45, column 1)
@ ./~/bootstrap-material-design/scss/bootstrap-material-design.scss 4:14-148
@ multi styles
角度-cli.jsonを
"styles": [
"../node_modules/bootstrap/scss/bootstrap-flex.scss",
"../node_modules/bootstrap-material-design/scss/bootstrap-material-design.scss",
]
bootstrap-material-designのドキュメントでは、node_modulesをsass-loaderのincludePathに配置すると言います。
現在のバージョンのangular-cliでは可能ですか? はいの場合、どうですか?
私はnode_modulesのscssを参照するために以下の表記を使うことができると思います: '@import"〜bootstrap/scss/bootstrap.scss ";' –
しかし、index.xmlに生成されたCSSそれをロードするには? – Cristiano