-
Notifications
You must be signed in to change notification settings - Fork 22
/
debug.webpack.config.js
49 lines (47 loc) · 1.04 KB
/
debug.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
46
47
48
49
const webpack = require('webpack');
var CircularDependencyPlugin = require("circular-dependency-plugin");
var ProvidePlugin = webpack.ProvidePlugin;
var config =
{
entry: __dirname + "/debug/main.js",
output: {
path: __dirname + "/build",
filename: "debug.bundle.js"
},
resolve: {
alias: {
'jquery-ui': 'jquery-ui/ui/widgets',
'jquery-ui-css': 'jquery-ui/../../themes/base',
'datatables': __dirname + '/src/js/helper/datatables'
}
},
module: {
loaders: [
{test: /\.css$/, loader: "style!css"},
// image loader
{
test: /\.(jpe?g|png|gif|ico)$/i,
//exclude: /node_modules/,
loader: "file?name=images/[name].[ext]"
},
// font loader
{
test: /\.(ttf|eot|svg|woff2?)(\?v=[a-z0-9=\.]+)?$/i,
loader: "file?name=images/[name].[ext]"
},
// disable AMD for datatables
{
test: require.resolve("datatables.net"),
loader: "imports?define=>false"
}
]
},
plugins: [
new CircularDependencyPlugin(),
new ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
]
};
module.exports = config;