|
- HTML and Static Assets - Vue CLI
When to use the public folder You need a file with a specific name in the build output You have thousands of images and need to dynamically reference their paths Some library may be incompatible with Webpack and you have no other option but to include it as a <script> tag
- Vue and Web Components
Vue and Web Components Web Components is an umbrella term for a set of web native APIs that allows developers to create reusable custom elements We consider Vue and Web Components to be primarily complementary technologies Vue has excellent support for both consuming and creating custom elements Whether you are integrating custom elements into an existing Vue application, or using Vue to
- Template Syntax - Vue. js
Vue uses an HTML-based template syntax that allows you to declaratively bind the rendered DOM to the underlying component instance's data All Vue templates are syntactically valid HTML that can be parsed by spec-compliant browsers and HTML parsers Under the hood, Vue compiles the templates into highly-optimized JavaScript code Combined with the reactivity system, Vue can intelligently
- KeepAlive - Vue. js
Include Exclude By default, <KeepAlive> will cache any component instance inside We can customize this behavior via the include and exclude props Both props can be a comma-delimited string, a RegExp, or an array containing either types: template
- 使用预处理器 | Vue Loader
使用预处理器 在 webpack 中,所有的预处理器需要匹配对应的 loader。Vue Loader 允许你使用其它 webpack loader 处理 Vue 组件的某一部分。它会根据 lang 特性以及你 webpack 配置中的规则自动推断出要使用的 loader。 Sass 例如,为了通过 Sass SCSS 编译我们的 <style> 标签:
- Working with CSS - Vue CLI
Loaders which can be configured via loaderOptions include: css-loader postcss-loader sass-loader less-loader stylus-loader
- Installation — Vue. js
Direct <script> Include Simply download and include with a script tag Vue will be registered as a global variable Don’t use the minified version during development You will miss out on all the nice warnings for common mistakes!
- Ways of Using Vue
Vue js - The Progressive JavaScript FrameworkWays of Using Vue We believe there is no "one size fits all" story for the web This is why Vue is designed to be flexible and incrementally adoptable Depending on your use case, Vue can be used in different ways to strike the optimal balance between stack complexity, developer experience and end performance Standalone Script Vue can be used as a
|
|
|