mirror of
https://github.com/inspec/inspec
synced 2024-12-24 20:13:16 +00:00
32 lines
862 B
JavaScript
32 lines
862 B
JavaScript
module.exports = {
|
|
entry: "./app/main.ts",
|
|
output: {
|
|
path: __dirname,
|
|
filename: "./dist/bundle.js",
|
|
},
|
|
|
|
// 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"
|
|
},
|
|
{
|
|
test: /\.css$/, loader: 'style!css',
|
|
}
|
|
],
|
|
|
|
preLoaders: [
|
|
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
|
|
{ test: /\.js$/, loader: "source-map-loader" }
|
|
]
|
|
},
|
|
};
|