diff options
author | 2018-08-07 10:54:17 +0300 | |
---|---|---|
committer | 2018-08-07 11:06:44 +0300 | |
commit | b2a3acea0d0f66028c9ce5fad02d4ecc64abf70c (patch) | |
tree | 8d70110f34cb845965c42a5915e950bca967d2c3 /webpack/webpack.test.js | |
parent | 05b37297177e8a342668c15e5d6f738b51f7aedd (diff) |
Initial commit.
Adding files needed for Linux Foundation.
Change-Id: I9f2b4851a5ae01f83800c7f8bab8608a2221c730
Issue-ID: SDC-1608
Signed-off-by: Israel Lavi <il0695@att.com>
Diffstat (limited to 'webpack/webpack.test.js')
-rw-r--r-- | webpack/webpack.test.js | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/webpack/webpack.test.js b/webpack/webpack.test.js deleted file mode 100644 index 9057d4e..0000000 --- a/webpack/webpack.test.js +++ /dev/null @@ -1,71 +0,0 @@ -/**************************************************************************************** - * Webpack test configuration file - * Using the current configuration we are able to bundle all the files we need for our - * unit testings. - ***************************************************************************************/ - - -'use strict'; - -/** - * Dependencies: - * path: node library for resolving full path names - * webpack: for use in our testings - */ -const path = require('path'); -const webpack = require('webpack'); -const helpers = require('./helpers'); -module.exports = { - /** - * Choose a developer tool to enhance debugging. inline-source-map - A SourceMap is added as DataUrl to the JavaScript file. - */ - devtool: 'inline-source-map', - - /** - * Set webpack loaders and preloaders for typescript, angular2, SASS and HTML, - * so that webpack will be able to process and bundle them. - */ - module: { - - rules: [ - { - test: /.ts$/, - exclude: /node_modules/, - use: [ - 'awesome-typescript-loader', - 'angular2-template-loader', - 'angular2-router-loader' - ] - }, - { test: /\.html$/, loader: "html-loader" }, - { - test: /.scss$/, - use: ['style-loader', 'css-loader', 'sass-loader'], - include: path.resolve(__dirname, '../') - }, - - ] - }, - - plugins: [ - // Workaround for angular/angular#11580 - new webpack.ContextReplacementPlugin( - // The (\\|\/) piece accounts for path separators in *nix and Windows - ///angular(\\|\/)core(\\|\/)@angular/, - /@angular(\\|\/)core(\\|\/)/, - helpers.root('./src'), // location of your src - {} // a map of your routes - ), - ], - - /** - * This section lets Webpack know which types of file extensions it should be loading. - */ - resolve: { - extensions: ['.js', '.ts'], - modules: [ - path.resolve('.', 'src'), - 'node_modules' - ] - }, -}; |