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?