-
Notifications
You must be signed in to change notification settings - Fork 18
/
webpack.config.js
32 lines (28 loc) · 914 Bytes
/
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
var path = require('path');
const imba = {
entry: "./apps/imba/app.imba",
output: { path: __dirname, filename: "./apps/imba/app.js" },
resolve: { extensions: [".imba",".js", ".json"] },
module: { rules: [{ test: /\.imba$/, loader: 'imba/loader' }] }
}
const react = {
entry: './apps/react/app.jsx',
output: {
path: __dirname,
filename: './apps/react/app.js'
},
resolve: { extensions: [".jsx",".js", ".json"] },
module: {
rules: [
{ test: /\.js$/, loader: 'babel-loader', exclude: /node_modules/ },
{ test: /\.jsx$/, loader: 'babel-loader', exclude: /node_modules/, options: {presets: ['es2015', 'react']} }
]
}
}
const client = {
entry: "./client.imba",
output: { path: __dirname, filename: "./client.js" },
resolve: { extensions: [".imba",".js", ".json"] },
module: { rules: [{ test: /\.imba$/, loader: 'imba/loader' }] }
}
module.exports = [imba,react,client];