-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathwebpack.config.cdn.js
More file actions
38 lines (36 loc) · 888 Bytes
/
webpack.config.cdn.js
File metadata and controls
38 lines (36 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
var path = require('path');
var webpack = require('webpack');
var WebpackNotifierPlugin = require('webpack-notifier');
var config = {
entry: {
runtime: './ShaderRuntime.js'
},
output: {
filename: 'shaderfrog-runtime.min.js',
library: 'ShaderFrogRuntime',
libraryTarget: 'var',
pubicPath: 'https://s3-us-west-1.amazonaws.com/shader-frog/example/'
},
resolveLoader: {
root: path.join(__dirname, 'scripts/loaders')
},
module: {
loaders: [{
test: /\.js$/,
loader: 'babel-loader'
}]
},
externals: {
THREE: 'THREE',
three: 'THREE'
},
plugins: [
new webpack.NoErrorsPlugin(),
new webpack.optimize.UglifyJsPlugin({
compress: {
warnings: false
}
})
]
};
module.exports = config;