- 基于vue-loader@14.2.3改造
- css的插入顺序有bug,不采用cml-extract-css-webpack-plugin是
- injectStyle方法在Vue实例的beforeCreated阶段插入导致父组件先插入
- 再插入子组件,所有css也是子组件在后,子组件的优先级高
- 解决办法是在执行模块时就执行injectStyle,模块依赖的组件都是import,import优先执行,就会比本组件的injectStyle之前先执行
cml-vue-loader
1.0.8 • Public • PublishedDependencies (13)
- consolidate
- hash-sum
- loader-utils
- lru-cache
- postcss
- postcss-load-config
- postcss-selector-parser
- prettier
- resolve
- source-map
- vue-hot-reload-api
- vue-style-loader
- vue-template-es2015-compiler
Dev Dependencies (39)
- autoprefixer
- babel-core
- babel-loader
- babel-preset-env
- chai
- coffee-loader
- coffee-script
- conventional-changelog-cli
- css-loader
- eslint
- eslint-plugin-vue-libs
- extract-text-webpack-plugin
- file-loader
- gitbook-plugin-edit-link
- gitbook-plugin-github
- gitbook-plugin-theme-vuejs
- js-yaml
- jsdom
- lint-staged
- marked
- memory-fs
- mkdirp
- mocha
- node-libs-browser
- normalize-newline
- null-loader
- pug
- raw-loader
- skeleton-loader
- stylus
- stylus-loader
- sugarss
- url-loader
- vue
- vue-server-renderer
- vue-template-compiler
- webpack
- webpack-merge
- yorkie
Package Sidebar
Install
npm i cml-vue-loader
Weekly Downloads
17
Version
1.0.8
License
Apache
Unpacked Size
47.6 kB
Total Files
21