https://github.com/simbo/webpack-dummy
Testing webpack and trying to replace gulp as a build tool.
https://github.com/simbo/webpack-dummy
Last synced: over 1 year ago
JSON representation
Testing webpack and trying to replace gulp as a build tool.
- Host: GitHub
- URL: https://github.com/simbo/webpack-dummy
- Owner: simbo
- License: mit
- Created: 2016-01-16T15:43:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-01-17T12:15:28.000Z (over 10 years ago)
- Last Synced: 2025-01-21T09:09:15.935Z (over 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
webpack-dummy
=============
> Testing webpack and trying to replace gulp as a build tool.
--
## Usage
```
# setup
npm i -g webpack && npm i
# use
webpack
```
See [webpack CLI docs](https://webpack.github.io/docs/cli.html).
## Challenges
### Accomplished
* bundle raw javascripts
- support CommonJS with custom require basedir
* parse stylus
- use custom plugins by glob
* use postcss with plugins and custom options
- use autoprefixer
- use mqpacker
* generate html from a jade template
* when watching stylus, also watch required/imported files
* clean generated files before build
### Unsolved
* simply concatenate javascripts that do not support CommonJS or AMD
* agnostically create multiple entries and outputs by glob
* create a static html structure by globbing templates
* create css files without creating javascript files
* when watching, clean before rebuild
* when watching jade, also watch extended/included files
* when parsing stylus, use custom options like paths, url and 'include css'
* when creating html from jade, use custom options like basedir and create custom filters
* when creating html from jade, use folder/file names from template structure
* release static site to remote server via rsync or similar
### Untested
* optimize images (png, jpg, svg) with custom options
* in production env, minify/uglify assets
* in pruduction env, do not build css if stylint throws errors on stylus sources
* in pruduction env, do not bundle js if eslint throws errors on javascript sources
## License
[MIT © Simon Lepel 2016](http://simbo.mit-license.org/)