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

Normalize input and output file names #10

Closed
ryanelian opened this issue Jul 23, 2017 · 0 comments
Closed

Normalize input and output file names #10

ryanelian opened this issue Jul 23, 2017 · 0 comments

Comments

@ryanelian
Copy link
Owner

ryanelian commented Jul 23, 2017

  • Right now the JS entry file name is correct: index.ts
  • Change input site.scss name to index.scss
  • Change default ouput site.css name to ipack.css
  • Change default output bundle.js name to ipack.js

While technically a breaking change (version 5), the remedy should be easy enough for the tool users.

When: October release will drop Node 6 support in favor of Node 8 LTS, which should bump the major version. Use this moment to perform this change as well.


Allow renaming output css and js file names.

package.json:

{
  "instapack": {
    "jsOut": "bundle.js",
    "cssOut": "site.css",
  }
}

The above example is how you'd emit output files identical to instapack 4.

instapack should intelligently parse jsOut and cssOut: the fields can be set with or without .js or .css extension!

Also, fix concat output configuration to detect whether .js extension is given or not.

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

No branches or pull requests

1 participant