
KeepAlive - Vue.js
Include / Exclude デフォルトでは、 <KeepAlive> はコンポーネント内のどんなコンポーネントでもキャッシュします。 この動作は include と exclude props を使用してカスタマイズできま …
Template Syntax - Vue.js
Here we're encountering something new. The v-html attribute you're seeing is called a directive.Directives are prefixed with v-to indicate that they are special attributes provided by …
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 …
HTML and Static Assets - Vue CLI
Result filenames include content hashes so you don’t need to worry about browsers caching their old versions. The public directory is provided as an escape hatch, and when you reference it …
Vue and Web Components
SFC as Custom Element . defineCustomElement also works with Vue Single-File Components (SFCs). However, with the default tooling setup, the <style> inside the SFCs will still be …
Using Vue with TypeScript
Projects scaffolded via create-vue include pre-configured tsconfig.json. The base config is abstracted in the @vue/tsconfig package. Inside the project, we use Project References to …
Getting Started | Vue Loader
// webpack.config.js const {VueLoaderPlugin } = require ('vue-loader') module. exports = {module: {rules: [// ... other rules {test: / \.vue$ /, loader: 'vue-loader'}]}, plugins: [// make sure to include …
Single-File Components - Vue.js
<style> tags inside SFCs are typically injected as native <style> tags during development to support hot updates. For production they can be extracted and merged into a single CSS file. …
Working with CSS - Vue CLI
Loaders which can be configured via loaderOptions include: css-loader; postcss-loader; sass-loader; less-loader; stylus-loader
KeepAlive - Vue.js
<KeepAlive> 默認會緩存內部的所有組件實例,但我們可以通過 include 和 exclude prop 來定製該行為。這兩個 prop 的值都可以是一個以英文逗號分隔的字符串、一個正則表達式,或是包含 …