Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-cli 引用 CSS 库 #28

Closed
Dream4ever opened this issue Jun 2, 2018 · 0 comments
Closed

vue-cli 引用 CSS 库 #28

Dream4ever opened this issue Jun 2, 2018 · 0 comments
Labels
JS Javascript

Comments

@Dream4ever
Copy link
Owner

需求描述

需要在 vue-cli 项目中引入 normalize.css 这样的库。

方案调研

调研过程

  • Google 关键字: import css library in vue cli

入选方案

应用过程

实际代码:

// src/main.js
import normalize from 'normalize.css'

new Vue({
  normalize
})

要点总结

@Dream4ever Dream4ever added the JS Javascript label Jun 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS Javascript
Projects
None yet
Development

No branches or pull requests

1 participant