webpack中scss的alias 发表于 2018-06-12 | 更新于 2019-03-05 | 阅读次数: webpack.config.js 12345resolve: { alias: { styles: path.join(__dirname, 'app/styles') }} index.scss @import "~styles/variables"; alias 名称前必须加上~