egoist / bili

Bili makes it easier to bundle JavaScript libraries.

Home Page:https://bili.egoist.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cjs format bulid bug

xgqfrms opened this issue · comments

cjs format bulid bug

image

The syntax to load plugins via CLI flag is --plugin.vue now

https://bili.egoist.sh/#/plugins

@egoist

not work still, what's wrong with it?

image

module.exports = {
    banner: true,
    output: {
        extractCSS: false,
    },
    plugins: {
        vue: {
            css: true
        },
    },
};

default is OK

no need set file path src/index & format flag --format cjs

image

image

@egoist Thanks for your time!

Remove the quote ' around your 'src/index.js', probably it's a Windows issue.

btw you don't need to include the plugin twice.

that's ok

image

  • that all works

image

btw you don't need to include the plugin twice.

you mean, bili will auto load bili.config.js, not need add it in npm script parms list?

yeah, use either cli flag or config file, no need for both

OK, I'd like using the bili.config.js, it's more easy read & write.

Thanks a lot!

what's wrong with this?

I just can't figure out which character is Wrong.

image

image

image loader bug ???

image


image loader ???

OK

image

use a rollup plugin for this

@egoist which plugin, and how to config it, could you show me a demo?

@xgqfrms search on npm and read the docs

well don't post unrelated stuff here as this issue is considered resolved.