|
79 | 79 | // chunksSortMode: 'dependency'
|
80 | 80 | // })
|
81 | 81 | // ];
|
| 82 | +// |
| 83 | +// |
| 84 | +// |
| 85 | +// |
| 86 | +// |
| 87 | +// const webpack = require('webpack'); |
| 88 | +// const HtmlWebpackPlugin = require('html-webpack-plugin'); |
| 89 | +// const CopyWebpackPlugin = require('copy-webpack-plugin'); |
| 90 | +// const path = require('path'); |
| 91 | +// const ClosureCompilerPlugin = require('webpack-closure-compiler'); |
| 92 | +// const autoprefixer = require('autoprefixer'); |
| 93 | +// const cssnano = require('cssnano'); |
| 94 | +// const ForkCheckerPlugin = require('awesome-typescript-loader').ForkCheckerPlugin; |
| 95 | +// // Resolve to the generated applications |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | +// let baseHtmlTemplateConfig = { |
| 101 | +// template: ngAppResolve('./src/index.html'), |
| 102 | +// chunksSortMode: 'dependency' |
| 103 | +// }; |
| 104 | +// // These are the output |
| 105 | +// const webpackTestPartial = { |
| 106 | +// module: { |
| 107 | +// plugins: [ |
| 108 | +// new ForkCheckerPlugin(), |
| 109 | +// new HtmlWebpackPlugin(baseHtmlTemplateConfig), |
| 110 | +// ], |
| 111 | +// preLoaders: [ |
| 112 | +// { |
| 113 | +// test: /\.ts$/, |
| 114 | +// loader: 'tslint-loader', |
| 115 | +// exclude: ['node_modules'] |
| 116 | +// }, |
| 117 | +// { |
| 118 | +// test: /\.js$/, |
| 119 | +// loader: 'source-map-loader', |
| 120 | +// exclude: [ |
| 121 | +// // these packages have problems with their sourcemaps |
| 122 | +// ngAppResolve('node_modules/rxjs'), |
| 123 | +// ngAppResolve('node_modules/@angular') |
| 124 | +// ]} |
| 125 | +// ], |
| 126 | +// loaders: [ |
| 127 | +// { |
| 128 | +// test: /\.ts$/, |
| 129 | +// loaders: [ |
| 130 | +// { |
| 131 | +// loader: 'awesome-typescript-loader', |
| 132 | +// query: { |
| 133 | +// useWebpackText: true, |
| 134 | +// tsconfig: ngAppResolve('./src/tsconfig.json'), |
| 135 | +// resolveGlobs: false, |
| 136 | +// module: "es2015", |
| 137 | +// target: "es5", |
| 138 | +// library: 'es6', |
| 139 | +// useForkChecker: true, |
| 140 | +// removeComments: true |
| 141 | +// } |
| 142 | +// }, |
| 143 | +// { |
| 144 | +// loader: 'angular2-template-loader' |
| 145 | +// } |
| 146 | +// ], |
| 147 | +// exclude: [/\.(spec|e2e)\.ts$/] |
| 148 | +// }, |
| 149 | +// { test: /\.json$/, loader: 'json-loader', exclude: [ngAppResolve('src/index.html')] }, |
| 150 | +// { test: /\.css$/, loader: 'raw-loader', exclude: [ngAppResolve('src/index.html')] }, |
| 151 | +// { test: /\.html$/, loader: 'raw-loader', exclude: [ngAppResolve('src/index.html')] } |
| 152 | +// ] |
| 153 | +// }, |
| 154 | +// tslint: { |
| 155 | +// emitErrors: false, |
| 156 | +// failOnHint: false, |
| 157 | +// resourcePath: 'src' |
| 158 | +// }, |
| 159 | +// node: { |
| 160 | +// global: 'window', |
| 161 | +// process: false, |
| 162 | +// crypto: 'empty', |
| 163 | +// module: false, |
| 164 | +// clearImmediate: false, |
| 165 | +// setImmediate: false |
| 166 | +// } |
| 167 | +// }; |
| 168 | + |
| 169 | +// Webpack Configuration Object |
| 170 | +// Used in build.ts |
| 171 | + |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
| 179 | + |
| 180 | + |
82 | 181 |
|
0 commit comments