2016-09-06 14:32:24 +00:00
|
|
|
module.exports = {
|
|
|
|
entry: "./app/main.ts",
|
|
|
|
output: {
|
|
|
|
path: __dirname,
|
2016-09-23 10:41:16 +00:00
|
|
|
filename: "./dist/inspec_tutorial.js",
|
2016-09-06 14:32:24 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
// Enable sourcemaps for debugging webpack's output.
|
|
|
|
devtool: "source-map",
|
|
|
|
|
|
|
|
resolve: {
|
|
|
|
// Add '.ts' and '.tsx' as resolvable extensions.
|
|
|
|
extensions: ["", ".webpack.js", ".web.js", ".ts", ".tsx", ".js"]
|
|
|
|
},
|
|
|
|
|
|
|
|
module: {
|
|
|
|
loaders: [
|
|
|
|
// All files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'.
|
|
|
|
{
|
|
|
|
test: /\.tsx?$/, loader: "ts-loader"
|
|
|
|
},
|
|
|
|
{
|
2016-09-30 17:43:59 +00:00
|
|
|
test: /\.css$/, loader: 'style!css'
|
2016-09-14 21:31:01 +00:00
|
|
|
},
|
|
|
|
{
|
2016-09-30 17:43:59 +00:00
|
|
|
test: /\.js$/, exclude: /(node_modules)/, loader: 'babel'
|
2016-09-06 14:32:24 +00:00
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
preLoaders: [
|
|
|
|
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
|
|
|
|
{ test: /\.js$/, loader: "source-map-loader" }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
};
|