-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack-interfaces.config.js
More file actions
76 lines (75 loc) · 2.92 KB
/
webpack-interfaces.config.js
File metadata and controls
76 lines (75 loc) · 2.92 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
var webpack = require("webpack");
var path = require("path");
module.exports = {
entry: {
// MAIN INTERFACES
'action-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.actions.js'),
'focus-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.focuses.js'),
'logentry-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.logentries.js'),
'plan-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.plans.js'),
'planstep-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.plan-steps.js'),
'tag-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.tags.js'),
'target-list': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.targets.js'),
// FORMS
'action-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.action-form.js'),
'focus-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.focus-form.js'),
'logentry-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.logentry-form.js'),
'plan-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.plan-form.js'),
'planstep-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.plan-step-form.js'),
'tag-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.tag-form.js'),
'target-form': path.resolve(__dirname, 'src/Client/interfaces/mount/mount.target-form.js'),
},
eslint: {
configFile: '.eslintrc'
},
module: {
loaders: [
{
test: /\.jsx?$/,
loader: 'babel',
exclude: /node_modules|bower_components/,
query: {
optional: ['spec.undefinedToVoid', 'runtime'],
stage: 0
}
},
{
test: /\.jsx?$/,
loader: 'eslint',
exclude: /node_modules|bower_components/
},
{
test: /\.json$/,
loader: 'json-loader',
},
{
test: /\.(png|jpg|jpeg|gif|svg)$/,
loader: 'url-loader?limit=10000',
},
{
test: /\.html$/,
loader: 'html-loader',
},
{
test: /\.(md|markdown)$/,
loader: ['html-loader', 'markdown-loader'],
},
{
test: /\.css$/,
loader: 'style-loader!css-loader',
},
{
test: /\.less$/,
loader: 'style-loader!css-loader!less-loader',
},
]
},
resolve: {
extensions: ['', '.js', '.jsx', '.json', '.coffee'],
root: path.resolve('./src/Client')
},
output: {
filename: '[name].js',
path: '../operator/build/public/doozy'
}
};