refactoring to TypeScript and ES6 modules

This commit is contained in:
alecmerdler 2017-01-18 15:46:37 -08:00
parent 6b0691577e
commit 4f96ab5353
8 changed files with 274 additions and 155 deletions

View file

@ -2,7 +2,7 @@ var webpack = require('webpack');
var path = require("path");
var config = {
entry: ["./static/js/app.tsx"],
entry: ["./static/js/app.tsx", "./static/js/services/angular-view-array/angular-view-array.ts"],
output: {
path: path.resolve(__dirname, "static/js/build"),
filename: "bundle.js"
@ -20,13 +20,14 @@ var config = {
loader: "ts-loader",
exclude: /node_modules/
},
{
test: /\.scss$/,
{
test: /\.scss$/,
loaders: ['style', 'css', 'sass'],
exclude: /node_modules/
exclude: /node_modules/
}
]
}
},
devtool: "cheap-eval-source-map",
};
module.exports = config;