Slide 1

Slide 1 text

No content

Slide 2

Slide 2 text

A new asset pipeline

Slide 3

Slide 3 text

No content

Slide 4

Slide 4 text

extracted

Slide 5

Slide 5 text

•Open Source •Written in Node.js •Built upon existing tooling (Rollup, Babel, node-sass, Autoprefixer, Browserslist, chokidar) •Web framework agnostic

Slide 6

Slide 6 text

Pick & Choose • Bundle modern JavaScript modules into a single distribution file • Combine Sass modules into a single CSS file • Copy static files

Slide 7

Slide 7 text

module.exports = { };

Slide 8

Slide 8 text

module.exports = { }; js: [{ source: "./index.js", target: "./public/app.js" }],

Slide 9

Slide 9 text

module.exports = { }; js: [{ source: "./index.js", target: "./public/app.js" }], sass: [{ source: "./index.scss", target: "./public/app.css" }],

Slide 10

Slide 10 text

module.exports = { }; js: [{ source: "./index.js", target: "./public/app.js" }], sass: [{ source: "./index.scss", target: "./public/app.css" }], static: [{ source: "./images", target: "./public/images" }]

Slide 11

Slide 11 text

.browserslistrc > 1% Last 2 versions IE 11

Slide 12

Slide 12 text

.browserslistrc > 1% Last 2 versions IE 11 㱺 CSS will automatically be prefixed accordingly

Slide 13

Slide 13 text

.browserslistrc > 1% Last 2 versions IE 11 㱺 CSS will automatically be prefixed accordingly 㱺 JS will automatically be transformed accordingly

Slide 14

Slide 14 text

Cache Busting • Can fingerprint your files • Creates a mapping JSON file that can be read by your app to figure out the fingerprinted names • That’s what a tiny gem does for Rails

Slide 15

Slide 15 text

Alternatives • https:/ /webpack.js.org • https:/ /neutrino.js.org • https:/ /parceljs.org

Slide 16

Slide 16 text

1.0.0 currently in beta available on npm

Slide 17

Slide 17 text

faucet-pipeline.org