-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add default P3 post-process config for theme modules (#55)
- Loading branch information
1 parent
196c745
commit f5d21d0
Showing
2 changed files
with
41 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const fixme = ` | ||
/* | ||
FIXME(polymer-modulizer): the above comments were extracted | ||
from HTML and may be out of place here. Review them and | ||
then delete this comment! | ||
*/ | ||
;` | ||
module.exports = { | ||
files: [ | ||
"theme/**/*-styles.js" | ||
], | ||
from: [ | ||
"const $_documentContainer = document.createElement('template');", | ||
"$_documentContainer.innerHTML = `", | ||
fixme | ||
], | ||
to: [ | ||
"import { html } from '@polymer/polymer/lib/utils/html-tag.js';", | ||
"const $_documentContainer = html`", | ||
"" | ||
] | ||
} |