@elegy7/parcel-plugin-alias
v1.0.9
Published
Fork from parcel-plugin-alias(fix some isuses)
Downloads
8
Readme
Fork from parcel-plugin-alias(fix some isuses)
homepage: https://github.com/466023746/parcel-plugin-alias
parcel alias
webpack alias for parcel
config
need an .aliasrc.js config file in your root directory
const path = require('path')
function resolve(dir) {
return path.join(__dirname, dir)
}
module.exports = {
src: resolve('src'),
assets: resolve('src/assets'),
components: resolve('src/components'),
pages: resolve('src/pages'),
store: resolve('src/store'),
api: resolve('src/api'),
common: resolve('src/common')
}