28 lines
525 B
JavaScript
28 lines
525 B
JavaScript
var webpack = require('webpack');
|
|
var path = require("path");
|
|
|
|
var config = {
|
|
entry: ["./static/js/app.tsx"],
|
|
output: {
|
|
path: path.resolve(__dirname, "static/js/build"),
|
|
filename: "bundle.js"
|
|
},
|
|
resolve: {
|
|
extensions: ["", ".ts", ".tsx", ".js"]
|
|
},
|
|
module: {
|
|
loaders: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: "ts-loader",
|
|
exclude: /node_modules/
|
|
},
|
|
{
|
|
test: /\.scss$/,
|
|
loaders: ['style', 'css', 'sass']
|
|
}
|
|
]
|
|
}
|
|
};
|
|
|
|
module.exports = config;
|