-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathwebpack.test.js
More file actions
28 lines (23 loc) · 884 Bytes
/
webpack.test.js
File metadata and controls
28 lines (23 loc) · 884 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
const path = require('path');
const webpack = require('webpack');
module.exports = {
devtool: 'inline-source-map',
resolve: {
extensions: ['', '.ts', '.js'],
modulesDirectories: ['node_modules'],
root: path.resolve('./src')
},
module: {
loaders: [
{test: /\.html$/, loader: 'raw'},
{test: /\.scss$/, include: [path.resolve(__dirname, 'src/components')], loader: 'raw!autoprefixer-loader?{browsers:["last 3 versions", "Firefox ESR"]}!sass'},
{test: /\.scss$/, include: [path.resolve(__dirname, 'src/styles')], loader: 'style!css!autoprefixer-loader?{browsers:["last 3 versions", "Firefox ESR"]}!sass'},
{test: /\.ts$/, exclude: [/node_modules/], loader: 'ts'}
],
noParse: [
/zone\.js\/dist\/jasmine-patch\.js/,
/zone\.js\/dist\/long-stack-trace-zone\.js/,
/zone\.js\/dist\/zone-microtask\.js/
]
}
};