Skip to content
This repository was archived by the owner on Aug 16, 2022. It is now read-only.
This repository was 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

Description

@elpres

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),
	]
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions