当前位置:网站首页>Typescript (TS loader, tsconfig.json and lodash)
Typescript (TS loader, tsconfig.json and lodash)
2022-07-19 07:24:00 【Much less】

ts-loader
You can put ts and webpack Put it all together
install
npm typescript ts-loader -D
Parameters
exclude Yes, configure exclusion , Don't use
use:ts Configured ts Go check
resolve Configure files with resolvable suffixes 

tsconfig.json
install tsconfig.json
npx tsc - - init

Open several important configurations
rootDir And change the value to src
outDir And change the value to dist
Set up app.js Value 
npx webpack After success
bundle.js There will be parsed code in (var age = 18;)
lodash
You can visit typescriptlang.org
https://blog.csdn.net/Mingyueyixi/article/details/72782026
Then you can search
For example, search lodash, After finding , Copy top right corner @types/lodash
install lodash:
npm i @types/lodash -D
Before installation lodash Bottom red underline Report errors 
installed npm i @types/lodash -D
close app.js Open it again or wait a moment , introduce lodash I won't make a mistake

So you can use it lodash The method of the
such as _join([]) Parameters are arrays , If you do not write parameters, an error will be reported 
边栏推荐
- AB Testing Review
- Pytorch learning diary (II)
- Paper reading: deep residual shrink networks for fault diagnosis
- m基于simulink的16QAM和2DPSK通信链路仿真,并通过matlab调用simulink模型得到误码率曲线
- M FPGA implementation of chaotic digital secure communication system based on Lorenz chaotic self synchronization, Verilog programming implementation, with MATLAB chaotic program
- What if the website is hijacked?
- 字典、元組和列錶的使用及區別,
- What does ack attack mean? How to defend ack attack
- My world 1.18.1 forge version open service tutorial, can install mod, with panel
- 网络知识-03 数据链路层-PPP
猜你喜欢

Matlab implementation code of image denoising method based on Hidden Markov tree model in wavelet domain

wcdma软切换性能matlab仿真m,对比平均激活集数(MASN)、激活集更新率(ASUR)及呼叫中断概率(OP)三个性能指标

Crawler foundation - Web page Foundation

M simulation of DQPSK modulation and demodulation technology based on MATLAB

SNN学习日记——安装SpikingJelly

Data analysis and visualization -- the shoes with the highest sales volume on jd.com

PyTorch学习日记(四)

Product Case Interviews

网络知识-05 传输层-UDP

Legendary game setup tutorial
随机推荐
剑指Offer刷题记录——Offer 05. 替换空格
Pychart installation tutorial
Minecraft paper version 1.18.1 open service tutorial, my world open service tutorial, mcsmanager 9 panel use tutorial
Matlab simulation of cognitive femtocell performance in m3gpp LTE communication network
基于simulink的转速反馈单闭环直流调速系统
Download, configuration and basic use of C language compiler
Hypothesis testing
Pytorch tensor
What is CDN? What are the advantages of using CDN?
M simulation of cooperative MIMO distributed space-time coding technology based on MATLAB
Pytorch learning diary (4)
Ivew shuttle box transfer component highlights the operation value
Network knowledge-05 transport layer TCP
SQL skimming summary SQL leetcode review
ivew 穿梭框Transfer组件高亮显示操作值
基于小波域的隐马尔可夫树模型的图像去噪方法的matlab实现代码
Steam game high frequency i9-12900k build cs:go server
SNN学习日记——安装SpikingJelly
Fundamentals of crawler - basic principles of agent
Regular expression, generator, iterator