Skip to content

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.

3 participants