我运行CMD:
ionic serve
我的应用程序运行完美。但是我对[波旁威士忌]有50个警告[贬值]。警告是这样的:
WARNING: [Bourbon] [Deprecation] `justify-content` is deprecated and will be removed in 5.0.0. We suggest using an autom
ated prefixing tool, like Autoprefixer.
Backtrace:
node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss:10, in mixin `-bourbon-deprecate`
node_modules/bourbon/app/assets/stylesheets/_bourbon-deprecate.scss:17, in mixin `-bourbon-deprecate-for-prefixi
ng`
node_modules/bourbon/app/assets/stylesheets/css3/_flex-box.scss:239, in mixin `justify-content`
src/theme/common/inputs/rating.scss:16, in mixin `rating-item-styles`
src/pages/maps/maps.scss:213
那么问题是什么?如何修复它?
我正在使用离子2 Angular 2
我有这个:
"dependencies": {
"@angular/common": "2.2.1",
"@angular/compiler": "2.2.1",
"@angular/compiler-cli": "2.2.1",
"@angular/core": "2.2.1",
"@angular/forms": "2.2.1",
"@angular/http": "2.2.1",
"@angular/platform-browser": "2.2.1",
"@angular/platform-browser-dynamic": "2.2.1",
"@angular/platform-server": "2.2.1",
"@ionic/storage": "1.1.7",
"@types/googlemaps": "^3.26.2",
"bourbon": "^4.3.3",
"ionic-angular": "2.0.0-rc.5",
"ionic-native": "2.2.11",
"ionicons": "3.0.0",
"rxjs": "5.0.0-beta.12",
"sw-toolbox": "3.4.0",
"zone.js": "0.6.26"
},
您实际上不需要带有离子2的波旁威士忌,因为默认构建stack 在此处 use autoprefixer 。
如果由于任何原因仍在使用它,请检查ChangElog。所有Mixins将在版本5中删除。对于当前版本,您可以尝试:
$output-bourbon-deprecation-warnings: false;
@import "bourbon";
如下所述。
如果您选择不升级,则可以通过 禁用波旁威士忌与折旧有关的SASS警告的输出。
在导入波旁威士忌之前必须声明此变量。