-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement/issue 426 restore userland postcss (#453)
* user postcss plugins for production * userland postcss from css transform * restore nested styles for components * renable and update PostCSS test case * reference projectDirectory context in rollup * update build docs for PostCSS configuration * fix link
- Loading branch information
1 parent
3ff4e52
commit bb21966
Showing
17 changed files
with
235 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
packages/cli/test/cases/build.config.postcss/postcss.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
module.exports = { | ||
plugins: { | ||
'postcss-preset-env': { | ||
stage: 1 | ||
}, | ||
'postcss-nested': {}, | ||
'cssnano': {} | ||
} | ||
plugins: [ | ||
require('postcss-nested') | ||
] | ||
}; |
11 changes: 0 additions & 11 deletions
11
packages/cli/test/cases/build.config.postcss/src/pages/hello.md
This file was deleted.
Oops, something went wrong.
12 changes: 12 additions & 0 deletions
12
packages/cli/test/cases/build.config.postcss/src/pages/index.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html lang="en" prefix="og:http://ogp.me/ns#"> | ||
|
||
<head> | ||
<link rel="stylesheet" href="/styles/main.css"></link> | ||
</head> | ||
|
||
<body> | ||
<h1>Hello World!</h1> | ||
</body> | ||
|
||
</html> |
3 changes: 0 additions & 3 deletions
3
packages/cli/test/cases/build.config.postcss/src/pages/index.md
This file was deleted.
Oops, something went wrong.
8 changes: 8 additions & 0 deletions
8
packages/cli/test/cases/build.config.postcss/src/styles/main.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
body { | ||
color: red; | ||
|
||
& h1 { | ||
color: blue; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,5 @@ | ||
module.exports = { | ||
// plugins: { | ||
// 'postcss-preset-env': { | ||
// stage: 1 | ||
// }, | ||
// 'postcss-nested': {}, | ||
// 'cssnano': {} | ||
// } | ||
plugins: [ | ||
require('postcss-nested') | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,4 @@ | |
@media (max-width: 1024px) { | ||
flex-direction: column; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,4 +14,4 @@ | |
@media (max-width: 768px) { | ||
flex-direction: row; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.