-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwebpack.config.js
More file actions
29 lines (28 loc) · 995 Bytes
/
webpack.config.js
File metadata and controls
29 lines (28 loc) · 995 Bytes
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
"use strict";
var path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'client/app/app.module.js'),
cache: true,
debug: true,
devtool: '#source-map',
output: {
path: path.resolve(__dirname, 'client/'),
filename: 'bundle.js',
publicPath: '/'
},
module: {
loaders: [
{test: /\.js$/, include: path.resolve(__dirname, 'client/app/'), loader: 'ng-annotate?map=false!babel-loader', presets: ['es2015']},
{test: /\.html$/, include: path.resolve(__dirname, 'client/app/'), loader: 'raw'},
{test: /\.scss$/, loader: 'style!css?sourceMap&minimize&-autoprefixer!postcss!sass?outputStyle=expanded'},
{test: /\.css$/, loader: 'style!css'},
{test: /\.(eot|ttf|woff|woff2|svg)$/, loader: 'url-loader?limit=8192'}
]
},
resolve: {
root: [
path.resolve(__dirname),
path.resolve(__dirname, 'client/app/')
]
}
};