test: include reftests previewer with docs website (#1799)

This commit is contained in:
Niklas von Hertzen
2019-04-12 23:17:23 -07:00
committed by GitHub
parent a7d881019b
commit cdc4ca8296
14 changed files with 385 additions and 51 deletions

20
www/webpack.config.js Normal file
View File

@@ -0,0 +1,20 @@
const path = require('path');
module.exports = {
mode: 'development',
target: 'web',
entry: path.resolve(__dirname, './src/preview.ts'),
output: {
path: path.resolve(__dirname, './static/tests'),
filename: 'preview.js'
},
resolve: {
extensions: [".tsx", ".ts", ".js", ".json"]
},
module: {
rules: [
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
{ test: /\.tsx?$/, use: ["ts-loader"], exclude: /node_modules/ }
]
}
};