Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elmariachi111/hexo-encore
https://github.com/elmariachi111/hexo-encore
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/elmariachi111/hexo-encore
- Owner: elmariachi111
- License: mit
- Created: 2017-11-20T16:30:53.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-22T08:51:03.000Z (almost 7 years ago)
- Last Synced: 2024-10-14T06:19:16.816Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hexo-encore
Hexo support for [Webpack/Encore](http://symfony.com/doc/current/frontend.html) (by Symfony). Heavily inspired by [hexo-renderer-webpack](https://github.com/briangonzalez/hexo-renderer-webpack).
## Install
``` bash
$ npm install hexo-encore --save
```## Options
You can configure this plugin in `_config.yml` and your theme's
`_config.yml`. The "mode" setting refer's to Encore's environments, you
can use "dev" or "production" here. "dev" currently emits inlined
sourcemaps whereas "production" uglifies, mangles and won't emit any
sourcemap.``` yaml
webpack:
mode: production
entry: 'themes/my-theme/source/js/app.js'
```or
``` yaml
webpack:
entry:
- 'themes/my-theme/source/js/app.js'
- 'themes/my-theme/source/js/lib.js'
```## Links
- Hexo: https://hexo.io/
- Webpack: http://webpack.github.io/
- Webpack Encore: http://symfony.com/doc/current/frontend.html