mirror of
https://github.com/inspec/inspec
synced 2024-12-11 22:02:47 +00:00
275772050e
* move /tutorial to /demo Signed-off-by: Dominik Richter <dominik.richter@gmail.com> * update netlify to build demo Signed-off-by: Dominik Richter <dominik.richter@gmail.com> * fix gulp run path Signed-off-by: Dominik Richter <dominik.richter@gmail.com> * ignore rubocop on www/demo Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
35 lines
971 B
JavaScript
35 lines
971 B
JavaScript
module.exports = {
|
|
entry: "./app/main.ts",
|
|
output: {
|
|
path: __dirname,
|
|
filename: "./dist/inspec_tutorial.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'
|
|
},
|
|
{
|
|
test: /\.js$/, exclude: /(node_modules)/, loader: 'babel'
|
|
}
|
|
],
|
|
|
|
preLoaders: [
|
|
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
|
|
{ test: /\.js$/, loader: "source-map-loader" }
|
|
]
|
|
},
|
|
};
|