Skip to content

transform does not work! #22

Description

@cailven

webpack.js

{
                test: /\.(glsl|frag|vert)$/,
                use: ['raw-loader',
                     {
                        loader: 'glslify-loader', options: {
                            transform: [
                                ['glslify-hex', { post: true }],
                            ]
                        },
                    }],
                exclude: /node_modules/
            },

glsl

void main() {

 gl_FragColor = #ff0000ff;

}

js

console.log(require("../glsl/post/test2.glsl"));

in console is also like that

void main() {

 gl_FragColor = #ff0000ff;

}

The tansform does not work!
ps. I already installed npm depend package.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions