wordpress - How to exclude a css file from a requireJS build? -


i using requirejs minify js , css files wordpress theme, want style.css ignored when requirejs builds optimized theme optimized theme folder supposed have style.css file.

my app.build.js file looks this:

({ appdir: "../", baseurl: "js", dir: "../../target/", modules: [     {         name: "main"     } ], paths: {     [...] }, shim: {     [...] } }) 

i have tried add following no avail:

fileexclusionregexp: /^style$/, 

since knowing when file has loaded not reliable, not make sense explicitly support css files in requirejs loading, since lead bug reports due browser behavior.

that's why requirejs not support css loading.


Comments

Popular posts from this blog

c++ - End of file on pipe magic during open -

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -