I use vue-cli3.0 to build the project load how to set the raw-loader in the project

I use vue-cli3.0 to build the project in the project
need to add loader

 {
    test: /\.glsl$/,
    loader: "raw-loader"
  }
  

so I configure the following in / / vue.config.js

module.exports = {
  lintOnSave: false,
  productionSourceMap: false,
  configureWebpack: {
    module: {
        loaders: [
          {
            test: /\.glsl$/,
            loader: "raw-loader"
          }
        ]
      }
  }
};

but running in this way will report an error. How should I configure it correctly?

clipboard.png

Feb.28,2021
Can loader be configured directly in

module? it should be rules.


is it done, brother? I think the configuration of pug is also a configuration error

.
Menu