We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I found that current vue-build in production mode offers fixed filename for the extracted CSS which is taken from the entry path:
vue-build
In https://github.com/vuejs/vue-cli/blob/master/bin/vue-build
new ExtractTextPlugin(options.lib ? `${replaceExtension(options.entry, '.css')}` : '[name].[contenthash:8].css')
I have a different project folder structure and I need to define a custom filename for the extracted CSS. How this can be achieved?
My temporary solution is presented below, but I think there must be a better way.
module.exports = { webpack(defaults, options) { defaults.output.filename = './index.js' defaults.plugins.find(el => { if (el.constructor.name === 'ExtractTextPlugin') { el.filename = './style.css' } }) return defaults; } };
The text was updated successfully, but these errors were encountered:
You can also use .map to replace that plugin.
.map
maybe add option for this:
module.exports = { filename: { js: 'index.js', css: 'style.css', assets: 'static/[name].[ext]' } }
Sorry, something went wrong.
Ok great!
hey there
hm, I'm using v.2.8.1 and for me filename in the (non-webpack) config seems to be just ignored.
v.2.8.1
filename
filename: { js: 'index.js', css: 'style.css', assets: 'static/[name].[ext]' }
..will still output eg client.35a7fe68.js when built with prod
client.35a7fe68.js
prod
yeah 3.0 you can map filename , it expects a string no?
No branches or pull requests
I found that current
vue-build
in production mode offers fixed filename for the extracted CSS which is taken from the entry path:In https://github.com/vuejs/vue-cli/blob/master/bin/vue-build
I have a different project folder structure and I need to define a custom filename for the extracted CSS. How this can be achieved?
My temporary solution is presented below, but I think there must be a better way.
The text was updated successfully, but these errors were encountered: