-
-
Notifications
You must be signed in to change notification settings - Fork 386
Can filename/chunkFilename support function type ? #67
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
Comments
Send a PR to allow |
@sokra Are you going to submit a PR recently? |
Feel free to send PR 👍 |
@evilebottnawi Haha. Actually I send the PR for extract-text-webpack-plugin before. Let me think of it. |
I look into the source code today and find that a bit difficult to just pass a Any suggestions for what we can do? |
@lcxfs1991 https://github.com/webpack-contrib/mini-css-extract-plugin/blob/master/src/index.js#L103 just add your code before, check on function and if function run it and save in filename |
@evilebottnawi Are you at Gitter? Let me discuss with you there. |
@lcxfs1991 give me link |
Hi guys, |
PR welcome |
Is there any update with this issue? |
@Fuji-sunny See #145. |
It will be great if this gets merged in |
It looks like you can set
Unless I'm missing something, maybe this just needs a bit of documentation and better error handling? |
Try to use
This works fine :) |
@evilebottnawi The |
…-webpack-plugin Can filename support function type ? panr#67 webpack-contrib/mini-css-extract-plugin#67 this not work: webpack-contrib/mini-css-extract-plugin#45 (comment) Extracting CSS based on entry also not work webpack-contrib/mini-css-extract-plugin#220
Fixed #602, |
|
Uh oh!
There was an error while loading. Please reload this page.
Much thanks for this project!
Here my project is a multi-page project, which means that I need my dist directory to be like this:
dist/
|---a/
| |---js/
| | |---a.js
| |---css/
| | |---a.css
| |---html/
| | |---a.html
|---b/
| |---js/
| | |---b.js
| |---css/
| | |---b.css
| |---html/
| | |---b.html
The entry point is 'xxx/js/xxx.js' so the [filename] in mini-css-extract-plugin is 'xxx/js/xxx'.
After webpack build my css files are in the [xxx/js/] directory, not my expectation [xxx/css/] directory.
In extract-text-webpack-plugin [filename] can be a function type and provide a getPath function as its arguments.
Can mini-css-extract-plugin's [filename] support function type like this ?
Or any other suggestion about the above implementation ?
The text was updated successfully, but these errors were encountered: