Skip to content

Kiricon build flag #5

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Kiricon build flag #5

wants to merge 2 commits into from

Conversation

Kiricon
Copy link
Member

@Kiricon Kiricon commented Sep 7, 2017

Will add directory help support in a future PR

let codeString = fs.readFileSync(`./${fileName}.js`, 'utf-8');
codeString = `${scopeStart} ${codeString} ${scopeEnd}`;

const result = uglify.minify(codeString);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want this to be fully uglified? By default this just does minification.

To uglify and scope a custom element so that it's usuable for the browser, run the following:

```CLI
create-element --buid [element-name]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we not have the create-element command find the element file? It seems a little counter intuitive to have it build every time. Plus, we might wanna set something more customizable up, like a basic gulp build or something? Maybe we make it create files called like my-cool-element.element.js or something, so they're easier to find?

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