承接 becklyn/mimeo 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

becklyn/mimeo

最新稳定版本:1.1.0

Composer 安装命令:

composer require becklyn/mimeo

包简介

Mimeo: copy (static) assets from NPM packages into your symfony project.

README 文档

README

Mimeo: copy (static) assets from NPM packages into your symfony project.

The name is inspired by the short name of a mimeograph.

Integration of Installation Paths

The symfony bundle can choose where the mimeo assets should be installed to. If the packages use SCSS files that reference these assets relatively, the installation path must be adapted.

The npm package, as well as the project that is using these assets, are supposed to declare (Symfony) respectively use (SCSS) a global variable called $mimeo-install-path.

The path must not end with a /.

In the npm package SCSS this can look like this:

$mimeo-install-path: ".." !default;

// .. later ..

a {
    background-image: url("#{$mimeo-install-path}/install-dir/img/example.jpg");
}

And in your project's SCSS like this:

$mimeo-install-path: "../mimeo";
@import "@becklyn/some-package";

Note the install-dir: the npm package knows the target directory where it will be installed to (as it defines it in the mimeo mapping in their package.json), so this must be used here as well.

统计信息

  • 总下载量: 8.08k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2019-03-28