Skip to content

Instantly share code, notes, and snippets.

@ipenywis
Forked from MillerGregor/TypeScript nwb.config.js
Created January 18, 2020 12:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ipenywis/93009bb85f68f43b9b2d81254edb9465 to your computer and use it in GitHub Desktop.
Save ipenywis/93009bb85f68f43b9b2d81254edb9465 to your computer and use it in GitHub Desktop.
module.exports = {
type: 'react-component',
npm: {
cjs: false,
esModules: false,
umd: false
},
polyfill: false,
webpack: {
config(config) {
config.entry = {
demo: ["./demo/src/index.tsx"]
}
config.resolve.extensions.push(".ts", ".tsx");
config.module.rules.push({
"test": /\.tsx?$/,
"loader": "awesome-typescript-loader"
});
return config;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment