Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-255

importing `sass` file into `js` does not register styles

    XMLWordPrintableJSON

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?

      Attachments

        Activity

          People

            erhaa19 erha19
            tuqire.hussain.sohohouse Tuqire hussain
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: