output: {
path: config.build.assetsRoot,
filename: '[name].js',
publicPath: process.env.NODE_ENV === 'production'
? config.build.assetsPublicPath
: config.dev.assetsPublicPath
},
resolve: {
extensions: ['.js', '.vue', '.json'],
-------------@是什么意思----------------
alias: {
'vue$': 'vue/dist/vue.esm.js',
'@': resolve('src')
}
-------------------------------
},
It’s just an alias.
The alias is set here to reduce the complexity of the path for subsequent references.
Similar problems can be solved by looking at the official documents