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
| /**
| * Created by Jacky.gao on 2016/5/17.
| */
| var webpack = require('webpack');
| module.exports = {
| entry: {
| designer:'./src/index.js',
| preview:'./src/preview.js',
| searchform: './src/form/index.js',
| common:'./src/common.js'
| },
| output: {
| path: '../report-console/src/main/resources/report-asserts/js',
| filename: '[name].bundle.js'
| },
| module: {
| loaders: [
| {
| test: /\.(jsx|js)?$/,
| exclude: /(node_modules|bower_components)/,
| loader: 'babel',
| query: {
| presets: ['react', 'es2015'],
| compact:true
| }
| },
| {
| test: /\.css$/,
| loader: "style-loader!css-loader"
| },
| {
| test: /\.json$/,
| loader: 'json-loader'
| },
| {
| test : /\.woff/,
| loader : 'url?prefix=font/&limit=10000&mimetype=application/font-woff'
| }, {
| test : /\.(ttf|png)/,
| loader : 'file?prefix=font/'
| }, {
| test : /\.eot/,
| loader : 'file?prefix=font/'
| }, {
| test : /\.svg/,
| loader : 'file?prefix=font/'
| }
| ]
| }
| };
|
|