1
0
mirror of https://github.com/mgerb/react-starter synced 2026-01-09 16:42:48 +00:00

convert to typescript - react-router upgrade to 4

This commit is contained in:
2017-03-29 17:09:32 -05:00
committed by Mitchell Gerber
parent eba08b8bc2
commit 0f7a775039
19 changed files with 1145 additions and 1245 deletions

View File

@@ -6,18 +6,24 @@ const webpack = require('webpack');
module.exports = {
entry: {
app: './app/app.js',
app: './app/app.tsx',
vendor: ['react', 'react-dom']
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].[hash].js'
},
resolve: {
extensions: ['.ts', '.tsx', '.js']
},
module: {
rules: [{
test: /\.(js|jsx)$/,
loaders: ['babel-loader']
}, {
test: /\.ts(x)?$/,
loaders: ['babel-loader', 'ts-loader']
},{
test: /\.scss$/,
loader: ExtractTextPlugin.extract({
fallbackLoader: 'style-loader',