-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
36 lines (35 loc) · 960 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
33
34
35
36
/**
* Combyna editable list example app
* Copyright (c) the Combyna project and contributors
* https://github.com/combyna/editable-list-example-app
*
* Released under the MIT license
* https://github.com/combyna/editable-list-example-app/raw/master/MIT-LICENSE.txt
*/
module.exports = {
context: __dirname,
entry: './js/index',
resolve: {
// Ignore NPM dependencies installed outside of node_modules (eg. other node_modules folders in /vendor)
modules: [__dirname + '/node_modules']
},
module: {
rules: [
{
test: /\.php$/,
use: 'uniter-loader'
},
{
test: /\.js$/,
exclude: /\bnode_modules\/(?!combyna)/,
use: {
loader: 'babel-loader'
}
}
]
},
output: {
path: __dirname + '/dist/',
filename: 'client.js'
}
};