- Server-side rendering (default, but optional)
- remove
html-webpack-plugin
- provide a revision manifest for server template consumption
- pass options to
DevServer.proxy
- remove
- Imagemin all svg/images
- JS: Min/Uglify/Babili
- eslint
- Postcss
- ExtractText
- Stylelint
- Minify/CSS Nano
- SVG Sprites
- Favicon generation
- DevServer/HMR
- Auto Modernizr/Customizr
- Nunjucks
- Favicons
- Lint config (not just source)
- Browsersync + DevServer (https://github.com/Va1/browser-sync-webpack-plugin)
- babel-polyfill
- dotenv webpack
- default paths (app/assets/js, etc)
- source maps (for all entry points)
- babelrc
- drop_console
neutrino.options.fusionary.setPathDefaults
: (default:true
)neutrino.options.fusionary.spa
: (default:false
)neutrino.options.fusionary.entryPoints
: (default:{head: './js/head.js'}
)
Options can be overridden in package.json
.
DEV_PROXY
: When runningstart
, requests will be proxied though this url.
{
"devDependencies": {
"neutrino": "^5.3.0",
"neutrino-preset-fusionary": "^1.0.0"
},
"scripts": {
"start": "neutrino start",
"build": "neutrino build",
"test": "neutrino test"
},
"neutrino": {
"use": [
"neutrino-preset-fusionary-web"
],
"options": {
"source": "./app/foo",
"output": "./public/foo",
"fusionary": {
"setPathDefaults": false,
"entryPoints": {
"myEntry": "./js/my-entry.js"
}
}
},
}
}