forked from woutervh-/pure-canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
35 lines (30 loc) · 875 Bytes
/
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
const HtmlWebpackPlugin = require('html-webpack-plugin');
const CircularDependencyPlugin = require('circular-dependency-plugin');
module.exports = {
entry: './examples/main.tsx',
output: {
filename: './dist/bundle.js'
},
devtool: 'source-map',
resolve: {
extensions: ['', '.ts', '.tsx', '.js', '.jsx', '.svg']
},
module: {
loaders: [
{test: /\.svg$/, loader: 'url'},
{test: /\.tsx?$/, loader: 'awesome-typescript-loader?configFileName=tsconfig.examples.json'}
],
preLoaders: [
{test: /\.js$/, loader: 'source-map-loader'}
]
},
plugins: [
new HtmlWebpackPlugin({
title: 'Pure Canvas Examples'
}),
new CircularDependencyPlugin({
exclude: /node_modules/,
failOnError: true
})
]
};