~/talk

Vue CLI – How to write components with it

Talkat Vue.js Amsterdam 2019 · 2019-02-14..02-15· [javascript]
slides:none on file

Shows how to turn a Vue CLI app into a consumable library by using vue-cli-service build to emit UMD and CommonJS bundles, writing a proper entry that exports named components plus an install function and auto-installs when window.Vue exists, using configureWebpack externals to avoid bundling Vue or lodash, choosing CSS extract vs inline, setting sideEffects to preserve CSS, and using the build report to shrink a bundle from 92KB to 14KB while mentioning the p11 helper plugin.

AI-written summary · about

  1. 0:00Start
  2. 3:25Adjusting build scripts
  3. 4:12Whats the perfect folder structure?
  4. 8:31Dealing with multiple components
  5. 16:34Babel Config
  6. 18:05Externalise Dependencies
  7. 20:56Handling CSS
  8. 22:33Tree Shaking
  9. 27:58The --report flag
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.