mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
test: include reftests previewer with docs website (#1799)
This commit is contained in:
committed by
GitHub
parent
a7d881019b
commit
cdc4ca8296
20
www/webpack.config.js
Normal file
20
www/webpack.config.js
Normal 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/ }
|
||||
]
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user