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

44 lines
879 B
JavaScript
Raw Normal View History

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: {
2017-02-06 22:05:19 +00:00
extensions: [".ts", ".tsx", ".js", ".scss"],
2016-11-07 22:27:50 +00:00
alias: {
2017-02-06 22:05:19 +00:00
sass: path.resolve(__dirname, 'static/css/directives/components/pages/')
2016-11-07 22:27:50 +00:00
}
},
// Use window.angular to maintain compatibility with non-Webpack components
externals: {
2017-02-06 22:05:19 +00:00
angular: "angular",
},
module: {
2017-02-06 22:05:19 +00:00
rules: [
{
test: /\.tsx?$/,
2017-03-08 19:43:53 +00:00
use: [
"ts-loader",
],
exclude: /node_modules/
2016-11-02 18:15:52 +00:00
},
{
test: /\.scss$/,
2017-02-06 22:05:19 +00:00
use: [
"style-loader",
"css-loader",
"sass-loader",
],
exclude: /node_modules/
},
]
},
devtool: "source-map",
};
module.exports = config;