Vue-cli: [vue build] `filename.js` in config file does not work.

Created on 2 Sep 2017  路  1Comment  路  Source: vuejs/vue-cli

I've used vue build ./src/index.js --dist ./dist with --lib and config file.

module.exports = {
    filename: {
        js:  '<my new file name>.js'
    }
};

I always get index.js in ./dist folder.

Seems that output file name is replaced by entry file name?
https://github.com/vuejs/vue-cli/blob/c5b2ea3a13e32b331b65991421d6755002820a6b/bin/vue-build#L235-L236

bug

Most helpful comment

Seems to be a bug, thanks for the report!

/cc @egoist

>All comments

Seems to be a bug, thanks for the report!

/cc @egoist

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gonzalo2683 picture Gonzalo2683  路  3Comments

eladcandroid picture eladcandroid  路  3Comments

DrSensor picture DrSensor  路  3Comments

NathanKleekamp picture NathanKleekamp  路  3Comments

joshuajohnson814 picture joshuajohnson814  路  3Comments