Quellcode durchsuchen

chore: add webpack config file for webstorm alias

WuXinyu vor 6 Jahren
Ursprung
Commit
9dbfa0e7cb
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      webpack.config.js

+ 10 - 0
webpack.config.js

@@ -0,0 +1,10 @@
+// only to make webstorm know alias
+const path = require('path')
+const base = path.resolve(__dirname, 'src')
+module.exports = {
+  resolve: {
+    alias: {
+      '@': base
+    }
+  }
+}