Skip to content

Commit 1a43fe2

Browse files
committed
Added raw-loader to make inclusion of shader source cleaner
1 parent bc298ac commit 1a43fe2

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"eslint": "^4.13.1",
3939
"fs-extra": "^5.0.0",
4040
"node-sloc": "^0.1.10",
41+
"raw-loader": "^0.5.1",
4142
"uglifyjs-webpack-plugin": "^1.1.2",
4243
"uuid": "^3.1.0",
4344
"webpack": "^3.10.0",

webpack.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,15 @@ module.exports = {
2222
umdNamedDefine: true,
2323
},
2424

25+
module: {
26+
rules: [
27+
{
28+
test: /\.txt$/,
29+
use: 'raw-loader'
30+
}
31+
]
32+
},
33+
2534
plugins: [
2635

2736
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)