https://github.com/juanpicado/webpack-babel-conf
https://github.com/juanpicado/webpack-babel-conf
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/juanpicado/webpack-babel-conf
- Owner: juanpicado
- Created: 2016-05-28T18:54:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2016-07-31T14:55:17.000Z (almost 9 years ago)
- Last Synced: 2025-03-23T21:42:52.423Z (3 months ago)
- Language: JavaScript
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## webpack-babel-conf
This module helps to reduce the overloaded webpack configuration using *babel* as a default loader, dependencies management.
npm install webpack-babel-conf --save-dev
## Usage
1. Create a file in the root folder `webpack.conf.js` and add the following code.
````
const configuration = require('webpack-babel-conf');
const webpackConf = configuration(
'./src/index.js',
'./build,
'index.min.js',
'myAppFoo',
'umd');
module.exports = webpackConf;
````2. Run webpack in the root folder `webpack --config webpack.conf.js`
3. Look the output file at `build/index.min.js`#### Options
The module returns a function, it accepts 4 parameters.
1. The entry point file
2. The output name
3. The name of the library
4. The library targetThis module extend [webpack-simple-conf](https://github.com/juanpicado/webpack-simple-conf)