Add styled-components babel configs
This commit is contained in:
@@ -4,13 +4,29 @@
|
||||
"react"
|
||||
],
|
||||
"plugins": [
|
||||
"react-hot-loader/babel"
|
||||
"react-hot-loader/babel",
|
||||
[
|
||||
"babel-plugin-styled-components",
|
||||
{ "ssr": true, "displayName": true, "preprocess": false }
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"production": {
|
||||
"plugins": [
|
||||
[
|
||||
"babel-plugin-styled-components",
|
||||
{ "ssr": true, "displayName": true, "preprocess": false }
|
||||
]
|
||||
],
|
||||
"presets": ["minify"]
|
||||
},
|
||||
"test": {
|
||||
"plugins": [
|
||||
[
|
||||
"babel-plugin-styled-components",
|
||||
{ "ssr": true, "displayName": true, "preprocess": false }
|
||||
]
|
||||
],
|
||||
"presets": ["env", "react"]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user