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
When importing files without assignment './styles.css', importPathFormatter is not executed and the import path is not changed.
'./styles.css'
importPathFormatter
When importing with assignment import styles from './styles.css', importPathFormatter is called as expected.
import styles from './styles.css'
index.js
import './style.css'; export default function(n) { return n+1; }
style.css
.abc { background: green; }
Babel config
{ "preprocessCss": "./scripts/precompile.js", "keepImport": true, "extensions": [".css", ".scss"], "generateScopedName": "[local]", "importPathFormatter": "./scripts/renameImports.js", "extractCss": { "dir": "./lib/", "relativeRoot": "./src/", "filename": "[path]/[name].css" } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When importing files without assignment
'./styles.css'
,importPathFormatter
is not executed and the import path is not changed.When importing with assignment
import styles from './styles.css'
,importPathFormatter
is called as expected.index.js
style.css
Babel config
The text was updated successfully, but these errors were encountered: