Description
Version
3.4.0
Reproduction link
https://github.com/endday/test-cli-build
Environment info
Environment Info:
System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
Binaries:
Node: 8.12.0 - E:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm: 6.4.1 - E:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 42.17134.1.0
npmPackages:
@vue/babel-helper-vue-jsx-merge-props: 1.0.0-beta.2
@vue/babel-plugin-transform-vue-jsx: 1.0.0-beta.2
@vue/babel-preset-app: 3.4.0
@vue/babel-preset-jsx: 1.0.0-beta.2
@vue/babel-sugar-functional-vue: 1.0.0-beta.2
@vue/babel-sugar-inject-h: 1.0.0-beta.2
@vue/babel-sugar-v-model: 1.0.0-beta.2
@vue/babel-sugar-v-on: 1.0.0-beta.2
@vue/cli-overlay: 3.4.0
@vue/cli-plugin-babel: ^3.4.0 => 3.4.0
@vue/cli-service: ^3.4.0 => 3.4.0
@vue/cli-shared-utils: 3.4.0
@vue/component-compiler-utils: 2.5.2
@vue/preload-webpack-plugin: 1.1.0
@vue/web-component-wrapper: 1.2.0
vue: ^2.5.22 => 2.5.22
vue-hot-reload-api: 2.3.1
vue-loader: 15.6.2
vue-router: ^3.0.1 => 3.0.2
vue-style-loader: 4.1.2
vue-template-compiler: ^2.5.21 => 2.5.22
vue-template-es2015-compiler: 1.8.2
npmGlobalPackages:
@vue/cli: Not Found
Steps to reproduce
npm run build
What is expected?
不会打包出0 kb的css
What is actually happening?
打包出了0kb的css
vue-cli-service build
- Building for production...
DONE Compiled successfully in 4944ms15:54:07
File Size Gzipped
dist\js\chunk-vendors.3a345100.js 129.59 KiB 46.06 KiB
dist\js\app.49db33fd.js 6.59 KiB 2.47 KiB
dist\js\about.f152f527.js 2.74 KiB 0.86 KiB
dist\css\app.e4689733.css 0.42 KiB 0.26 KiB
dist\css\about.0e433876.css 0.00 KiB 0.02 KiB
Images and other types of assets omitted.
DONE Build complete. The dist directory is ready to be deployed.
INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
Process finished with exit code 0