T
T
tj572018-04-29 14:21:40
webpack
tj57, 2018-04-29 14:21:40

Why is a Vue.js project not being built by webpack?

The following error occurs while building the project:
5ae5ab2eac0de176594439.png
Package.json:
5ae5abb0ee31b046098948.png
I installed all the loaders, but it seems to me that something is missing, the bundler simply does not recognize Vue files.
app.vue :
5ae5abbb58db9493694441.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Aksentiev, 2018-04-29
@Sanasol

webpack.config.js

...
  module: {
    loaders: [
      {
        test: /\.vue$/,
        loader: 'vue-loader',
        exclude: [/node_modules/],
        options: {
          loaders: {
            scss: 'vue-style-loader!css-loader!sass-loader',
            sass: 'vue-style-loader!css-loader!sass-loader?indentedSyntax'
          }
        }
      },
...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question