Created
December 5, 2017 14:35
-
-
Save gnesher/d5717742d57fc2ba8c8087704db164ba to your computer and use it in GitHub Desktop.
our webpack build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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