This repository was archived by the owner on Sep 1, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwebpack.config.js
More file actions
79 lines (76 loc) · 3.08 KB
/
Copy pathwebpack.config.js
File metadata and controls
79 lines (76 loc) · 3.08 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
var path = require('path');
module.exports = {
entry : __dirname + '/index.js',
output : {
path : __dirname + '/app/js',
filename : 'index.js',
publicPath : "./js/",
libraryTarget : 'umd'
},
module : {
loaders : [ {
test : /\.jsx?$/,
include : [ //
path.resolve(__dirname, 'index.js'),//
path.resolve(__dirname, 'src'), //
path.resolve(__dirname, '../theme/'), //
path.resolve(__dirname, 'lib-core'), //
/.*mosaic-.*/ //
],
loader : 'babel-loader'
}, {
test : /\.json/,
loader : 'json-loader'
}, {
test : /\.less|\.css/,
loader : "style-loader!css-loader!less-loader"
}, {
test : /\.html$/,
loader : "html-loader"
}, {
test : /\.(png|jpg|svg|woff2?|eot|ttf)$/,
loader : 'url-loader?limit=150000'
} ],
// noParse : [ __dirname + '/node_modules/react' ]
},
externals : [],
resolve : {
alias : {
'react' : __dirname + '/node_modules/react',
'react-dom' : __dirname + '/node_modules/react-dom',
'mosaic-app-core' : __dirname + '/node_modules/mosaic-app-core',
'mosaic-app-ui' : __dirname + '/node_modules/mosaic-app-ui',
'mosaic-intents' : __dirname + '/node_modules/mosaic-intents',
'mosaic-adapters' : __dirname + '/node_modules/mosaic-adapters',
'mosaic-dataset' : __dirname + '/node_modules/mosaic-dataset',
'mosaic-dataset-geo' : __dirname + '/node_modules/mosaic-dataset-geo',
'mosaic-dataset-index' : __dirname + '/node_modules/mosaic-dataset-index',
'mosaic-ui' : __dirname + '/node_modules/mosaic-ui',
// leaflet : __dirname +
// '/node_modules/leaflet/dist/leaflet-src.js',
// 'leaflet-css' : __dirname +
// '/node_modules/leaflet/dist/leaflet.css',
// leaflet : __dirname +
// '/node_modules/leaflet/dist/leaflet-src.js',
// 'bootstrap-css-only' : __dirname
// + '/node_modules/bootstrap/dist/css',
// 'handsontable' : __dirname + '/node_modules/handsontable/',
// 'handsontable-css' : __dirname
// + '/node_modules/handsontable/src/css/handsontable.css',
// 'autoResize' : __dirname
// + '/node_modules/handsontable/lib/autoResize/autoResize.js',
// 'copyPaste' : __dirname
// + '/node_modules/handsontable/lib/copyPaste/copyPaste.js',
// 'es6collections' : __dirname
// + '/node_modules/handsontable/lib/es6collections/es6collections.js',
// 'jsonpatch' : __dirname
// + '/node_modules/handsontable/lib/jsonpatch/jsonpatch.js',
// 'numeral' : __dirname
// + '/node_modules/handsontable/lib/numeral/numeral.js',
// 'SheetClip' : __dirname
// + '/node_modules/handsontable/lib/SheetClip/SheetClip.js',
// 'moment' : __dirname
// + '/node_modules/handsontable/dist/moment/moment.js'
}
}
};