Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

karinasigartau0798
Copy link
Contributor

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

@karinasigartau0798 karinasigartau0798 force-pushed the add-assets-path branch 3 times, most recently from 7d5100d to 921c9bd Compare April 27, 2021 13:16
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';
Copy link
Contributor

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.
Copy link
Contributor

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?

@karinasigartau0798 karinasigartau0798 force-pushed the add-assets-path branch 2 times, most recently from f2dc0cd to 3933385 Compare April 29, 2021 09:19
@karinasigartau0798 karinasigartau0798 force-pushed the add-assets-path branch 3 times, most recently from 7ca6c55 to 6e41a1e Compare May 6, 2021 14:30
@lalli-flores
Copy link
Contributor

Don't forget to update dependencies.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants