Jelajahi Sumber

chore: add webpack config file for webstorm alias

WuXinyu 6 tahun lalu
induk
melakukan
9dbfa0e7cb
1 mengubah file dengan 10 tambahan dan 0 penghapusan
  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
+    }
+  }
+}