diff --git a/package.json b/package.json index 939dcefcc..dfb52ca7d 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "eslint": "^4.13.1", "fs-extra": "^5.0.0", "node-sloc": "^0.1.10", + "raw-loader": "^0.5.1", "uglifyjs-webpack-plugin": "^1.1.2", "uuid": "^3.1.0", "webpack": "^3.10.0", diff --git a/webpack.config.js b/webpack.config.js index 1ec2f9ecc..6b7807925 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -22,6 +22,15 @@ module.exports = { umdNamedDefine: true, }, + module: { + rules: [ + { + test: [ /\.vert$/, /\.frag$/ ], + use: 'raw-loader' + } + ] + }, + plugins: [ new webpack.DefinePlugin({