A
A
Alexander Ivanov2018-03-15 13:32:49
Vue.js
Alexander Ivanov, 2018-03-15 13:32:49

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]')
        // }
      },
...
    ]
  },
}

After I deployed the project to vue-cli webpack and set the path to statics, the files began to be read only from the static path and, for example, the static / img folders,
however, the empty ones like static / img / images or static / path stopped working
Where to configure these paths in vue -cli webpack?
Maybe you need to somehow clean the chache webpack.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ivanov, 2018-03-15
@cimonlebedev

the problem was with symlinks

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question