Home
Sign Up
Sign In
Advertisement
V2EX
›
Node.js
如何解决 webpack definePlugin 注入的变量在 IDEA 的语法检查中,报未声明变量的问题
jiaqidegege1
·
Jul 15, 2021
· 2073 views
This topic created in 1937 days ago, the information mentioned may be changed or developed.
变量
webpack
语法
IDEA
2 replies
•
2021-07-15 17:10:31 +08:00
meathill
Jul 15, 2021
1
指明是全局变量:`/* global var_name */`
doommm
Jul 15, 2021
2
用额外的 .d.ts 文件来声明你注入的变量
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1335 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 52ms ·
UTC 20:32
·
PVG 04:32
·
LAX 12:32
·
JFK 15:32
♥ Do have faith in what you're doing.
❯