Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Doesn't compile CSS of all .vue files on repeated (in memory) invocation #106

Closed
@duzun

Description

@duzun

I use browserSync and rollup in a gulp live command to watch for file changes and compile JS automatically. My JS imports a bunch of .vue files and rollup-plugin-vue is collectiong all CSS from all components in vue/vue.css file.
On first run everything is good.

Expected behavior

It should gather all CSS from all .vue components in one vue/vue.css file on each run inside a persistent process.

Actual behavior

On the second and consequent runs inside the same process, it collects CSS from only one .vue component.

Steps to reproduce the behavior

I run gulp-better-rollup with the following plugins:

   let plugins = [
        // require('rollup-plugin-strip')(),
        require('rollup-plugin-json')(),
        require('rollup-plugin-node-resolve')({
            jsnext: true,
            main: true
        }),
        require('rollup-plugin-commonjs')({
            extensions: [ '.js', '.json', '.vue' ],
            namedExports: {
                'perfect-scrollbar': ['initialize', 'update', 'destroy'],
            }
        }),
        require('rollup-plugin-vue')({
            css: './vue/vue.css'
        }),
        require('rollup-plugin-babel')(bo),
    ];

multiple time inside the same process for the same source files.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions