-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
61 lines (53 loc) · 2.04 KB
/
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
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
var path = require('path');
var ExtractTextPlugin = require("extract-text-webpack-plugin");
//var configFile = require('./config.dev.json');
module.exports = {
//entry: ['./src/seigrid.js','./src/app.js'],
//entry: ['./Scripts/app/app.js', // './Scripts/lib/jszip.min.js',
entry: ['./Scripts/app/index.js', // './Scripts/lib/jszip.min.js',
/*'./content/kendo/2015.3.1111/bootstrap.css', //TODO - fix the Fonts path ****
'./content/kendo/2015.3.1111/kendo.common.min.css',
'./content/kendo/2015.3.1111/kendo.bootstrap.min.css',
'./content/app/kendo.custom.css',
'./content/app/Site.css'*/
],
//style: [ './src/controls/styles/bootstrap.css'],
output: {
path: path.resolve(__dirname, 'build'),
filename: 'appBundle.js'
},
module: {
loaders: [
{ test: /\.png$/, loader: "url-loader?limit=100000" },
{ test: /\.jpg$/, loader: "file-loader" },
{ test: /\.jpeg$/, loader: "file-loader" },
{ test: /\.gif$/, loader: "file-loader" },
{ test: /\.txt$/, loader: "raw-loader" },
{ test: /\.json$/, loader: "json-loader" },
{test: /\.(config)$/, loader: "file-loader?name=[name].[ext]"},
{ test: /.(woff(2)?|eot|ttf|svg)(\?[a-z0-9=\.]+)?$/, loader: 'url-loader?limit=100000' },
{
test: /\.css$/,loader: ExtractTextPlugin.extract("style-loader", "css-loader"),
loader: ExtractTextPlugin.extract("style", "css", "less")},
{
loader: 'babel-loader',
exclude: /node_modules/,
test: /\.js$/,
query: {
presets: ['es2015', 'react', 'stage-0'],
},
}
]
},
plugins: [
new ExtractTextPlugin("style.css", {
allChunks: true
})
],
/**
* Section: externals - Put any external config file to compile
*/
externals: {
AppConfig: JSON.stringify(require('./config/config.dev.json'))
}
};