将主scss文件放在流星中的位置

时间:2017-10-16 10:15:16

标签: javascript meteor sass materialize

你究竟在哪里把main.scss文件放在meteor中。我跟着这个https://github.com/poetic/meteor-materialize-scss 安装 fourseven:scss poetic:materialize-scss ,我可以看到物化图标已正确加载。但是我无法看到加载的CSS。

我创建了一个main.scss并输入以下行:

/client/main.scss

@import "{poetic:materialize-scss}/sass/materialize.scss";

这是放置main.scss的合适位置吗?流星如何加载scss文件?

我的配置:
Windows 10
流星1.5.5.5
fourseven:scss@4.5.4
诗的:materialize-scss@1.2.10

编辑:添加了使用的包。

使用的套餐:

accounts-base                     1.3.4  A user account system
accounts-password                 1.4.1  Password support for accounts
aldeed:autoform                   5.8.1* Easily create forms with automatic 
insert and update, and automatic reactive...
aldeed:autoform-select2           2.0.3* Custom select2 input type for AutoForm
aldeed:collection2-core           2.0.1  Core package for aldeed:collection2
aldeed:delete-button              2.0.0  Provides a delete button UI component
aldeed:simple-schema              1.5.3  A simple schema validation object with reactivity. Used by collection2 and a...
blaze-html-templates              1.1.2  Compile HTML templates into reactive UI with Meteor Blaze 
check                             1.2.5  Check whether a value matches a pattern
dynamic-import                    0.1.3  Runtime support for Meteor 1.5 dynamic import(...) syntax
ecmascript                        0.8.3  Compiler plugin that supports ES2015+ in all .js files
ecwyne:mathjs                     2.7.0  Mathjs, An extensive math library for JavaScript, packaged for Meteor. See h...
email                             1.2.3  Send email messages
es5-shim                          4.6.15  Shims and polyfills to improve ECMAScript 5 support
gildaspk:autoform-materialize     0.0.26  Materialize theme for Autoform
johanbrook:publication-collector  1.0.10  Test a Meteor publication by collecting its output.
jquery                            1.11.10  Manipulate the DOM using CSS selectors
kadira:blaze-layout               2.3.0  Layout Manager for Blaze (works well with FlowRouter)
kadira:flow-router                2.12.1  Carefully Designed Client Side Router for Meteor
less                              2.7.9  Leaner CSS language
meteor-base                       1.1.0  Packages that every Meteor app needs
meteorhacks:aggregate             1.3.0  Proper MongoDB aggregations support for Meteor
mobile-experience                 1.0.5  Packages for a great mobile user experience
momentjs:moment                   2.19.1  Moment.js (official): parse, validate, manipulate, and display dates - offi...
mongo                             1.2.2  Adaptor for using MongoDB and Minimongo over DDP
natestrauser:select2              4.0.3  Select2 is a jQuery based replacement for select boxes.
npm-bcrypt                        0.9.3  Wrapper around the bcrypt npm package
practicalmeteor:mocha             2.4.5_6  Write package tests with mocha and run them in the browser or from the com...
reactive-var                      1.0.11  Reactive variable
session                           1.1.7  Session variable
standard-minifier-css             1.3.5  Standard css minifier used with Meteor apps by default.
standard-minifier-js              2.1.2  Standard javascript minifiers used with Meteor apps by default.
tracker                           1.1.3  Dependency tracker to allow reactive callbacks
underscore                        1.0.10  Collection of small helpers: _.map, _.each, ...
useraccounts:flow-routing         1.14.2  UserAccounts package providing routes configuration capability via kadira:f...
New versions of these packages are available! Run 'meteor update' to try to update those packages to their latest

版本。如果您的包无法进一步更新,请尝试输入meteor add <package>@<newVersion>以查看更多内容   信息。

0 个答案:

没有答案