-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwebpack.config.babel.js
42 lines (39 loc) · 1.02 KB
/
webpack.config.babel.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
import webpack from 'webpack'
import path from 'path'
const name = 'PostmanImporter'
const production = process.env.NODE_ENV === 'production' // eslint-disable-line
const config = {
target: 'web',
entry: [
'immutable',
'api-flow',
'./src/postman/Importer.js'
],
output: {
path: path.join(__dirname,
'./build/com.luckymarmot.PawExtensions.PostmanImporter'
),
pathInfo: true,
publicPath: '/build/',
filename: name + '.js'
},
module: {
loaders: [
{
loader: 'babel-loader',
include: [
path.resolve(__dirname, 'src')
],
test: /\.jsx?$/
},
{
loader: 'json-loader',
include: [
path.resolve(__dirname, 'node_modules/api-flow/node_modules/swagger-schema-official')
],
test: /\.json$/
}
]
}
}
module.exports = config