Skip to content

Commit

Permalink
webpack config in typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Nov 19, 2017
1 parent 77f2a8b commit bcc9bcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webpack.config.js → webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
const webpack = require('webpack');
const ExtractTextPlugin = require('extract-text-webpack-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const nodeExternals = require('webpack-node-externals');
import webpack from 'webpack';
import * as HtmlWebpackPlugin from 'html-webpack-plugin';
import * as nodeExternals from 'webpack-node-externals';

module.exports = env => {
export default env => {
env = env || {};

let entry;
Expand All @@ -22,7 +21,7 @@ module.exports = env => {
];
}

const config = {
const config: webpack.Configuration = {
entry: entry,
output: {
filename: env.standalone ? 'redoc.standalone.js' : 'redoc.lib.js',
Expand Down Expand Up @@ -108,5 +107,6 @@ module.exports = env => {
}),
);
}

return config;
};

0 comments on commit bcc9bcc

Please sign in to comment.