6b54279bb7
Rebuilt Markdown editor/views into new components
43 lines
864 B
JavaScript
43 lines
864 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: /\.s?css$/,
|
|
use: [
|
|
"style-loader",
|
|
"css-loader",
|
|
"sass-loader",
|
|
],
|
|
},
|
|
]
|
|
},
|
|
devtool: "source-map",
|
|
};
|
|
|
|
module.exports = config;
|