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
Post a Comment