2

我正在创建一个 bower 文件,然后将其添加到https://rails-assets.org/

我可以很好地提取文件,但是我无法引用该scss文件。该css文件可以很好地导入,但是因为它仅包含变量而变得无用。

像这样导入到rails中的application.scss:

@import 'dist/stylesheets/helpers/_variables.scss';
@import 'dist/stylesheets/helpers/variables.css';

鲍尔.json

{
    "name": "torpedo",
    "main": [
      "dist/stylesheets/helpers/_normalize.scss",
      "dist/stylesheets/helpers/variables.css"
    ],
    "ignore": [
        "source",
        "spec",
        ".bowerrc",
        ".gitignore",
        ".jshintignore",
        ".jshintrc",
        "bower.json",
        "gruntfile.js",
        "package.json",
        "README.md"
    ]
}
4

0 回答 0