1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-11 01:22:48 +00:00

typescript conversion

This commit is contained in:
2017-08-02 19:50:00 -05:00
parent 43fadf9c6a
commit 84c2425c6d
13 changed files with 347 additions and 64 deletions

View File

@@ -5,18 +5,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: '/static/[name].[hash].js'
filename: './static/[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',