https://github.com/static-dev/spike-js-standards
Very basic webpack2 babel configuration wrapper
https://github.com/static-dev/spike-js-standards
Last synced: about 1 month ago
JSON representation
Very basic webpack2 babel configuration wrapper
- Host: GitHub
- URL: https://github.com/static-dev/spike-js-standards
- Owner: static-dev
- License: other
- Created: 2017-04-07T16:49:41.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-05T22:13:31.000Z (almost 8 years ago)
- Last Synced: 2025-09-18T18:51:52.664Z (7 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Spike JS Standards
This is a super simple wrapper for a basic webpack2 babel configuration. It's `babel-preset-env` without es module parsing (webpack does this), and a plugin for supporting `import()` which is a ecma standard, and webpack uses for dynamic code splitting.
### Installation
`yarn add spike-js-standards`
### Usage
```js
const jsStandards = require('spike-js-standards')
// wherever you have your babel config, this is how spike's looks
module.exports = {
// ...
babel: jsStandards()
// ...
}
```
### Options
| Name | Description | Default |
| ---- | ----------- | ------- |
| **appendPlugins** | Adds a single plugin or array of plugins after all the defaults | |
| **prependPlugins** | Adds a single plugin or array of plugins before all the defaults | |
| **appendPresets** | Adds a single preset or array of presets after all the defaults | |
| **prependPresets** | Adds a single preset or array of presets before all the defaults | |
### License & Contributing
- Details on the license [can be found here](LICENSE.md)
- Details on running tests and contributing [can be found here](contributing.md)