module.exports = {
    module: {
        rules: [
            {
                test: /\.(glsl|frag|vert)$/,
                loader: 'raw-loader',
            },
            {
                test: /\.(glsl|frag|vert)$/,
                loader: 'glslify-loader',
            }
        ]
    }
}
const path = require('path');
module.exports = {
    module: {
        rules: [
            {
                loader: 'raw-loader',
                test: /\.(glsl|frag|vert)$/,
                include: [ path.resolve(__dirname, "build/node_modules/") ],
            },
            {
                loader: 'glslify-loader',
                test: /\.(glsl|frag|vert)$/,
                include: [ path.resolve(__dirname, "build/node_modules/") ]
            }
        ]
    }
}
include only build/node_modules for shader imports