forked from usnistgov/OpenSeadragonFiltering
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
50 lines (49 loc) · 1.27 KB
/
webpack.config.js
File metadata and controls
50 lines (49 loc) · 1.27 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
var webpack = require('webpack');
var path = require('path');
var CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
context: __dirname,
entry: ['./demo/demo.js'],
output: {
path: __dirname + '/dist',
filename: 'demo-bundle.js'
},
eslint: {
configFile: '.eslintrc.json'
},
module: {
loaders: [{
test: /\.js$/,
loader: 'eslint-loader',
exclude: /node_modules/
}, {
test: /\.(jpe?g|png|gif)$/i,
loader: 'file-loader',
query: {
name: '[name].[ext]',
outputPath: 'images/'
},
}, {
test: /node_modules\/jquery-ui\/.*\.css$/,
loaders: ['style-loader','css-loader']
}],
},
plugins: [
new CopyWebpackPlugin([{
from: 'node_modules/openseadragon/build/openseadragon/images',
to: 'images'
}, {
from: 'demo/images',
to: 'images'
}, {
from: 'demo/static',
to: 'static'
}]),
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery',
'window.jQuery': 'jquery',
'window.$': 'jquery',
})
]
};