Skip to content
This repository has been archived by the owner on Aug 16, 2022. It is now read-only.

3.4.0 always adds "data-v" attributes, even for non-scoped styles #75

Closed
elpres opened this issue Jun 27, 2018 · 0 comments
Closed

3.4.0 always adds "data-v" attributes, even for non-scoped styles #75

elpres opened this issue Jun 27, 2018 · 0 comments

Comments

@elpres
Copy link

elpres commented Jun 27, 2018

As the title says, even if the style block inside an SFC doesn't have a "scoped" attribute, the resulting DOM will be full of "data-v" attributes. Version 3.3.2 didn't do that yet.

I'm using rollup with the following config:

import resolve from 'rollup-plugin-node-resolve';
import replace from 'rollup-plugin-replace';
import css from 'rollup-plugin-css-only'
import vue from 'rollup-plugin-vue';
import { uglify } from 'rollup-plugin-uglify';
import { minify } from 'uglify-es';

const production = !process.env.ROLLUP_WATCH;

export default {
	input: 'main.js',
	output: {
		file: 'dist/bundle.js',
		format: 'iife',
		sourcemap: true
	},
	plugins: [
		resolve(),
		replace({
			'process.env.NODE_ENV': JSON.stringify(production ? 'production': 'development'),
			'process.env.VUE_ENV': JSON.stringify('browser')
		}),
		css(),
		vue({
			css: false
		}),
		production && uglify({}, minify),
	]
};
@znck znck closed this as completed in 1a42be3 Jun 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant