parcel-plugin-alias
v1.0.3
Published
webpack alias for parcel
Downloads
54
Readme
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')
}