当前位置:网站首页>Setting alias alias and @ reference note
Setting alias alias and @ reference note
2022-06-11 23:31:00 【RxnNing】
# vue/cli2 webpack.base.config.js in
resolve: {
extensions: ['.js', '.vue', '.json'],
alias: {
'@': resolve('src'),
'components': resolve('src/components')
}
},
After configuration, the project must be restarted to take effect
# Use
import defaultBreadcrumb from 'components/common/breadcrumb/breadcrumb'
stay css Use in
{
background: url(~@/assets/img/04_2.jpg);
background: url('[email protected]/assets/img/04_2.jpg');// In the wrong , There's a pit here , It can't be written as a string , That's why I made a mistake
}
Used in templates
<img class="pic-404__child left" src="[email protected]/assets/404_images/404_cloud.png" alt="404">
Quote the original link : Click on the original link
边栏推荐
- Live broadcast preview | featurestore meetup V3 is coming!
- 2022 safety officer-a certificate test question simulation test platform operation
- oracle中dblink操作
- 删除收货地址【项目 商城】
- 2022 low voltage electrician certificate and online simulation examination
- Leetcode must review 20 lintcode (5466421166978227)
- The top ten trends of 2022 industrial Internet security was officially released
- Implementation scheme of iteration and combination pattern for general tree structure
- The second bullet of in-depth dialogue with the container service ack distribution: how to build a hybrid cloud unified network plane with the help of hybridnet
- 帝国理工等最新《胶囊网络综述》论文,29页pdf阐述胶囊的概念、方法与应用
猜你喜欢

2022 high voltage electrician test question simulation test question bank and online simulation test

2022 safety officer-b certificate theoretical question bank and simulation test

2022年安全员-A证考题模拟考试平台操作

In order to stimulate inspiration and creativity, Shanghai daoning united with XMIND to bring you full-featured mind mapping and brainstorming software

Google搜索為什麼不能無限分頁?

解决IDEA下载插件慢的问题

Lake Shore - supertran VP continuous flow cryogenic thermostat system

【Day2 文献精读】Time in the mind: Using space to think about time

移印工艺流程及应用注意事项

Lake Shore - supervaritemp low temperature thermostat
随机推荐
Discrete mathematics attention points, priority problems
[Delphi] determine the encoding method of the file (ANSI, Unicode, utf8, unicodebig)
Introduction aux bases de SOLR
直播预告|FeatureStore Meetup V3 重磅来袭!
【Day1/5 文献精读】Speed Constancy or Only Slowness: What Drives the Kappa Effect
[C language] data type storage, original code, inverse code and complement code
Data visualization platform based on template configuration
2022 low voltage electrician certificate and online simulation examination
MySQL 8.0 解压版安装教程
【Day13-14 文献精读】Cross-dimensional magnitude interactions arise from memory interference
Jetpack架构组件学习(3)——Activity Results API使用
In order to stimulate inspiration and creativity, Shanghai daoning united with XMIND to bring you full-featured mind mapping and brainstorming software
04 automatic learning rate - learning notes - lihongyi's in-depth learning 2021
帝国理工等最新《胶囊网络综述》论文,29页pdf阐述胶囊的概念、方法与应用
Leetcode must review 20 lintcode (5466421166978227)
MySQL 8.0 decompressed version installation tutorial
2022年安全员-B证理论题库及模拟考试
Wake up wrist - neural network and deep learning (tensorflow application) updating
【delphi】判断文件的编码方式(ANSI、Unicode、UTF8、UnicodeBIG)
双向带头循环链表(C语言)