= ::
– Evan You
“Integrating with Nuxt is the full package. It’s like more complete.”
Web Development Nowadays
• Component, Container, Store
• SSR (Server-Side Rendering)
• Router w/ History API
• Latest ECMAScript
• Hot Module Reloading
• SASS
• ...
No more…
• webpack.config.js
• gulpfile.js
• .babelrc
• ...
No more…
• webpack.config.js
• gulpfile.js
• .babelrc
• ...
Only Nuxt
$ npm install nuxt
Only Nuxt
$ npm install nuxt
Only Nuxt
$ npm install nuxt
Isomorphic JavaScript
Isomorphic JavaScript Code
Isomorphic JavaScript
Isomorphic JavaScript Code
Front-end Script
Isomorphic JavaScript
Isomorphic JavaScript Code
Web ServerFront-end Script
Vue as Template Engine
• <% %>
• <%= %>
• <%# %>
• <% -%>
• {% extends %}
• {% if %}
• {% elif %}
• {% for in %}
Vue as Template Engine
• <% %>
• <%= %>
• <%# %>
• <% -%>
index.vue
• {% extends %}
• {% if %}
• {% elif %}
• {% for in %}
Caveat
Different Context
• window
• document
• $
• localStorage
• ...
• process
• global
• module
• require(‘path’)
• ...
Tree Shaking
import _ from ‘lodash’
Tree Shaking
import _ from ‘lodash’ 540 KB
Tree Shaking
import _ from ‘lodash’ 540 KB
import _map from ‘lodash/map’
Tree Shaking
import _ from ‘lodash’ 540 KB
import _map from ‘lodash/map’ 2 KB
Demonstration

Nuxt로 사내서비스 구현하면서 얻은 경험 공유