Answer the question
In order to leave comments, you need to log in
How to set path to statics in VUE-cli webpack?
the actual introduction of
Webpack (webpack.base.conf.js) :
module.exports = {
module: {
rules: [
...
// пути к изображениям [name].[hash:7].[ext]
{
test: /\.(png|jpg|gif|svg|woff|woff2|eot|ttf)(\?.*)?$/,
loader: 'url-loader',
// options: {
// limit: 10000,
// name: utils.assetsPath('img/[name].[ext]')
// }
},
...
]
},
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question