Skip to content

Instantly share code, notes, and snippets.

@gnesher
Created December 5, 2017 14:35
Show Gist options
  • Save gnesher/d5717742d57fc2ba8c8087704db164ba to your computer and use it in GitHub Desktop.
Save gnesher/d5717742d57fc2ba8c8087704db164ba to your computer and use it in GitHub Desktop.
our webpack build
module.exports = {
context: __dirname + '/scripts',
entry: "./app.ts",
output: {
filename: "./www/scripts/appBundle.js",
},
resolve: {
extensions: [".tsx", ".ts", ".js"]
},
devServer: {
contentBase: __dirname + '/www',
},
module: {
rules: [
{
test: /\.tsx?$/,
use: [
{
loader: "ts-loader",
options: {
configFile: "scripts/tsconfig.json"
}
}
]
}
]
},
devtool: "source-map"
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment