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

style中没有设定scoped但依然生成了css module类名 #312

Open
ananiy opened this issue Apr 19, 2018 · 3 comments
Open

style中没有设定scoped但依然生成了css module类名 #312

ananiy opened this issue Apr 19, 2018 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@ananiy
Copy link

ananiy commented Apr 19, 2018

请问这是feature还是bug...

@ananiy
Copy link
Author

ananiy commented Apr 20, 2018

image

@ananiy
Copy link
Author

ananiy commented Apr 20, 2018

$ vue init mpvue/mpvue-quickstart test-project

? Project name test-project
? wxmp appid touristappid
? Project description A Mpvue project
? Author ananiy
? Vue build runtime
? Use Vuex? No
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? 小程序测试,敬请关注最新微信开发者工具的“测试报告”功能

   vue-cli · Generated "test-project".

   To get started:

     cd test-project
     npm install
     npm run dev

   Documentation can be found at http://mpvue.com

$ npm i
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: This module relies on Node.js's internals and will break at some point. Do not use it, and update to [email protected].

> [email protected] install /Users/yaning.li/Desktop/workspace/test-project/node_modules/fsevents
> node install

[fsevents] Success: "/Users/yaning.li/Desktop/workspace/test-project/node_modules/fsevents/lib/binding/Release/node-v57-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> [email protected] postinstall /Users/yaning.li/Desktop/workspace/test-project/node_modules/mpvue-webpack-target/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js

npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] requires a peer of vue-template-compiler@^2.0.0 but none is installed. You must install peer dependencies yourself.

added 1109 packages in 17.621s

$ code .

然后打开就会有这个 data-v-xxxxxx 的类名

如果我去掉pages/index/index.vue 下style的scoped, 这个类名还会存在

@tomatosqq
Copy link

同问 如何去掉生成的_div data-v-**这些没必要吧

@mpvue-bot mpvue-bot bot added the wontfix This will not be worked on label Oct 23, 2018
@mpvue-bot mpvue-bot bot closed this as completed Oct 30, 2018
@aOrz aOrz reopened this Oct 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants