标签:路径 webp col hog webpack nbsp .data config exports
新建 webpack.config.js
然后加入 如下代码
module.exports = (webpackConfig, env) => { // 别名配置 const data = webpackConfig.resolve.alias; webpackConfig.resolve.alias = { ‘@‘: `${__dirname}/src`, ...data } return webpackConfig }
然后就可以使用别名路径了
roadhog resolve alias 绝对路径 别名使用
标签:路径 webp col hog webpack nbsp .data config exports
原文地址:https://www.cnblogs.com/bruce-gou/p/9285034.html