1.0.0 • Published 7 years ago

neutrino-preset-fusionary-web v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

Features

  • Server-side rendering (default, but optional)
    • remove html-webpack-plugin
    • provide a revision manifest for server template consumption
    • pass options to DevServer.proxy
  • 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

Options

  • 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.

Environment Variables

  • DEV_PROXY: When running start, requests will be proxied though this url.

package.json:

{
  "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"
        }
      }
    },
  }
}