1
0
mirror of https://github.com/phuoc-ng/csslayout.git synced 2025-08-08 15:16:52 +02:00

Rename to typescript extension

This commit is contained in:
Phuoc Nguyen
2019-11-24 23:09:38 +07:00
parent bf35bd3b92
commit 642e179699
104 changed files with 183 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ if (process.env.NODE_ENV === "analyse") {
}
module.exports = {
entry: './client/index.jsx',
entry: './client/index.tsx',
output: {
path: path.join(__dirname, 'dist'),
filename: '[name].[contenthash].js',
@@ -35,10 +35,20 @@ module.exports = {
test: /\.css$/,
use: ['style-loader', 'css-loader'],
},
{
test: /\.ts(x?)$/,
exclude: /node_modules/,
use: 'ts-loader',
},
{
enforce: "pre",
test: /\.js$/,
loader: 'source-map-loader',
},
],
},
resolve: {
extensions: ['.js', '.jsx'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
devtool: 'cheap-module-eavl-source-map',
devServer: {