diff options
Diffstat (limited to 'webpack.config.js')
-rw-r--r-- | webpack.config.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/webpack.config.js b/webpack.config.js index 73c10dd..2806bd9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,9 +3,9 @@ var webpack = require("webpack"); var UglifyJsPlugin = require("uglifyjs-webpack-plugin"); var PATHS = { - entryPoint: path.resolve(__dirname, 'index.ts'), + entryPoint: path.resolve(__dirname, './index.ts'), bundles: path.resolve(__dirname, 'dist'), -} +}; var config = { // These are the entry point of our library. We tell webpack to use @@ -13,8 +13,8 @@ var config = { // the name to filter the second entry point for applying code // minification via UglifyJS entry: { - 'sdc-pubsub': [PATHS.entryPoint], - 'sdc-pubsub.min': [PATHS.entryPoint] + 'sdc-pubsub': PATHS.entryPoint, + 'sdc-pubsub.min': PATHS.entryPoint }, // The output defines how and where we want the bundles. The special // value `[name]` in `filename` tell Webpack to use the name we defined above. @@ -55,14 +55,14 @@ var config = { test: /\.ts?$/, use: [ { - loader: 'awesome-typescript-loader', + loader: 'ts-loader', options: { - configFileName: 'tsconfig.json' + configFile: 'tsconfig.json' } } ] }] } -} +}; module.exports = config;
\ No newline at end of file |