-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
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
build(rollup): add assets to the build #209
base: master
Are you sure you want to change the base?
build(rollup): add assets to the build #209
Conversation
7d5100d
to
921c9bd
Compare
rollup.config.js
Outdated
@@ -4,6 +4,8 @@ import copy from 'rollup-plugin-copy'; | |||
import license from 'rollup-plugin-license'; | |||
import scss from 'rollup-plugin-scss'; | |||
import visualizer from 'rollup-plugin-visualizer'; | |||
import postcss from 'rollup-plugin-postcss'; | |||
import copyAssets from 'postcss-copy-assets'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We end up using postcss-url
because postcss-copy-assets
is not maintained
@@ -73,48 +73,6 @@ https://github.com/webex/widgets. | |||
|
|||
### Styles | |||
|
|||
In order to properly style Webex Components, we need to import all the fonts, icons, images and core _CSS_ manually. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While developers won't have to import from Momentum, would they still need to import our assets in their apps?
f2dc0cd
to
3933385
Compare
7ca6c55
to
6e41a1e
Compare
Don't forget to update |
6e41a1e
to
399367e
Compare
399367e
to
14427ec
Compare
Copy the assets to the assets folder in the build directory and resolve the paths in the CSS file.
https://jira-eng-gpk2.cisco.com/jira/browse/SPARK-208853