Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
-
Weex: v1.2.9
- weexpack : v1.1.6
- weex-builder : v0.3.14
- weex-previewer : v1.4.6
Env: web
Description
Overview
In our app, we are currently using `tachyons` for our CSS (http://tachyons.io/). I was hoping to import tachyons directly into `entry.js` so they could be used within all components, but this isn't working. Even though the app compiles and runs when I run `yarn dev`, the css has not been registered. Code is below:
import '../node_modules/tachyons/css/tachyons.min.css' import store from './store' import '@/helpers/atom-components' import router from './router' import App from './index' new Vue(Vue.util.extend({ el: '#root', store, router }, App)) router.push('/') /* global Vue */ /* eslint-disable no-new */ // new Vue(Vue.util.extend({ el: '#root', router }, App))
Can someone help with this please?