forked from NIST-ISG/OpenSeadragonFiltering
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
45 lines (44 loc) · 1.13 KB
/
webpack.config.js
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
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/
}
]
},
resolve: {
alias: {
// bind version of jquery-ui
"jquery-ui": "jquery-ui/jquery-ui.js",
// bind to modules;
modules: path.join(__dirname, "node_modules")
}
},
plugins: [
new CopyWebpackPlugin([{
from: 'node_modules/openseadragon/build/openseadragon/images',
to: 'images'
}, {
from: 'demo/images',
to: 'images'
}]),
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery",
"window.jQuery": "jquery"
})
]
};