-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels