-
Notifications
You must be signed in to change notification settings - Fork 67
Expand file tree
/
Copy pathwebpack.config.js
More file actions
80 lines (79 loc) · 2.2 KB
/
webpack.config.js
File metadata and controls
80 lines (79 loc) · 2.2 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
var webpackCommon = require('./webpack.common');
var webpackConfig = {
devtool: 'source-map'
};
webpackCommon.devtool = webpackConfig.devtool;
module.exports = webpackCommon;
// module.exports = {
// devtool: 'eval-source-map',
// entry: {
// app: [
// getPath('./src/app.js'),
// getPath('./src/config/dev.config.js')
// ],
// vendors: [
// 'angular',
// 'angular-ui-router',
// 'angular-animate',
// 'angular-sanitize',
// 'angular-ui-bootstrap',
// 'angular-local-storage'
// ]
// },
// output: {
// path: getPath('./dist'),
// filename: '[name].[chunkhash].bundle.js',
// sourceMapFilename: '[name].[chunkhash].bundle.map'
// },
// module: {
// loaders: [{
// test: /\.js$/,
// exclude: /(node_modules)/,
// loaders: ['babel']
// }, {
// test: /\.html$/,
// loader: 'ngtemplate!html',
// exclude: /(index)/
// }, {
// test: /\.less$/,
// loader: ExtractTextPlugin.extract('css?sourceMap!less?sourceMap')
// },
// // FONTS
// {
// test: /\.woff$/,
// loader: 'url?limit=100000&name=./fonts/[name]/[hash].[ext]'
// }, {
// test: /\.eot$/,
// loader: 'file'
// }, {
// test: /\.svg$/,
// loader: 'url?limit=100000&name=./fonts/[name]/[hash].[ext]'
// },
// // the url-loader uses DataUrls.
// // the file-loader emits files.
// {
// test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/,
// loader: 'url?limit=10000&minetype=application/font-woff'
// }, {
// test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
// loader: 'file'
// }]
// },
// plugins: [
// new webpack.DefinePlugin({
// 'NODE_ENV': JSON.stringify(process.env.NODE_ENV)
// }),
// new ngAnnotatePlugin({
// add: true
// // other ng-annotate options here
// }),
// new webpack.optimize.CommonsChunkPlugin('vendors',
// 'vendors.[hash].js'),
// new ExtractTextPlugin('[name].[chunkhash].style.css'),
// // HtmlWebpackPlugin
// // See: https://github.com/ampedandwired/html-webpack-plugin
// new HtmlWebpackPlugin({
// template: 'html!./src/index.html'
// })
// ]
// };