Skip to content
New issue

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

css storage to other locations #193

Closed
LiangJunrong opened this issue Jun 28, 2018 · 11 comments
Closed

css storage to other locations #193

LiangJunrong opened this issue Jun 28, 2018 · 11 comments

Comments

@LiangJunrong
Copy link

In configuration, the explain is

new MiniCssExtractPlugin({
filename:'[name].css',
chunkFilename: '[id].css'
})

But, if I want to save css to other locations like:

new MiniCssExtractPlugin({
filename:'css/[name].css',
chunkFilename: 'css/[id].css'
})

my css file 'background' doesn't work, how could I use it work as before.
PS : Sorry my English is so poor, expected reply.

@evenstensberg
Copy link
Member

Thanks! To sum up: How can you specify another destination for css to be bundled towards?

@alexander-akait
Copy link
Member

filename:'path/to/my/dir/[name].css',
chunkFilename: 'path/to/my/dir/[id].css'

?

@alexander-akait
Copy link
Member

alexander-akait commented Jun 28, 2018

@LiangJunrong you have invalid outputPath/publicPath value for url-loader/file-loader, without configuration i can't help

@LiangJunrong
Copy link
Author

@evilebottnawi enm... I can use other css when I set another detination without background, because of I didn't set the true value for url-loader/file-loader?

@alexander-akait
Copy link
Member

@LiangJunrong without minimum reproducible test repo i can't help

@evenstensberg
Copy link
Member

@LiangJunrong I'm doing the same thing myself. Could you give me a project url that I can test against, or send a mail to evenstensberg@gmail.com ?

@LiangJunrong
Copy link
Author

@ev1stensberg Thanks! my question project in https://github.com/LiangJunrong/webpack-question, enm... could you read the chinese?

@evenstensberg
Copy link
Member

I do not :( Do you mind translating the readme/ relevant code?

@LiangJunrong
Copy link
Author

@evenstensberg
Copy link
Member

Could you try to use webpack-manifest plugin?

@LiangJunrong
Copy link
Author

@ev1stensberg I have a try.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants