This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/webpack.config.js
Joseph Schorr e9ffe0e27b Implement new search UI
We now have both autocomplete-based searching for quick results, as well as a full search page for a full listing of results
2017-04-28 13:57:28 -04:00

44 lines
896 B
JavaScript

var webpack = require('webpack');
var path = require("path");
var config = {
entry: "./static/js/main.ts",
output: {
path: path.resolve(__dirname, "static/build"),
filename: "bundle.js"
},
resolve: {
extensions: [".ts", ".tsx", ".js", ".scss"],
alias: {
sass: path.resolve(__dirname, 'static/css/directives/components/pages/')
}
},
// Use window.angular to maintain compatibility with non-Webpack components
externals: {
angular: "angular",
jquery: "$",
},
module: {
rules: [
{
test: /\.tsx?$/,
use: [
"ts-loader",
],
exclude: /node_modules/
},
{
test: /\.scss$/,
use: [
"style-loader",
"css-loader",
"sass-loader",
],
exclude: /node_modules/
},
]
},
devtool: "source-map",
};
module.exports = config;