Add input handling
This commit is contained in:
parent
29c6b14440
commit
d5be727040
36 changed files with 417 additions and 113 deletions
|
|
@ -7,6 +7,7 @@ const MiniCssExtractPlugin = require('mini-css-extract-plugin');
|
|||
const HtmlWebpackInlineSourcePlugin = require('html-webpack-inline-source-plugin');
|
||||
const Sharp = require('responsive-loader/sharp');
|
||||
const Sass = require('sass');
|
||||
const tsNameof = require('ts-nameof');
|
||||
|
||||
const isProduction = process.env.NODE_ENV === 'production';
|
||||
|
||||
|
|
@ -73,7 +74,7 @@ module.exports = {
|
|||
{
|
||||
test: /\.(frag|vert)$/i,
|
||||
use: {
|
||||
loader: 'raw-loader'
|
||||
loader: 'raw-loader',
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
@ -120,7 +121,12 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: 'ts-loader',
|
||||
use: {
|
||||
loader: 'ts-loader',
|
||||
options: {
|
||||
getCustomTransformers: () => ({ before: [tsNameof] }),
|
||||
},
|
||||
},
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue