Skip to content

Commit a36071e

Browse files
committed
Reversed DLL Plugin work. This is 1.1+ work.
1 parent 19d6e62 commit a36071e

File tree

5 files changed

+92
-149
lines changed

5 files changed

+92
-149
lines changed

addon/ng2/commands/init.js

+1-13
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var validProjectName = require('ember-cli/lib/utilities/valid-project-name');
77
var normalizeBlueprint = require('ember-cli/lib/utilities/normalize-blueprint-option');
88
var GitInit = require('../tasks/git-init');
99
var LinkCli = require('../tasks/link-cli');
10-
var BuildWebpackDll = require('../tasks/build-webpack-dll');
10+
1111

1212
module.exports = Command.extend({
1313
name: 'init',
@@ -51,12 +51,6 @@ module.exports = Command.extend({
5151
project: this.project
5252
});
5353

54-
var buildWebpackDll = new BuildWebpackDll({
55-
ui: this.ui,
56-
analytics: this.analytics,
57-
project: this.project
58-
});
59-
6054
// needs an explicit check in case it's just 'undefined'
6155
// due to passing of options from 'new' and 'addon'
6256
if (commandOptions.skipGit === false) {
@@ -148,12 +142,6 @@ module.exports = Command.extend({
148142
verbose: commandOptions.verbose
149143
});
150144
}
151-
})
152-
.then(function() {
153-
return buildWebpackDll.run({
154-
verbose: commandOptions.verbose,
155-
optional: false
156-
})
157145
});
158146
}
159147
});

addon/ng2/models/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ export * from './webpack-build-test';
33
export * from './webpack-build-production';
44
export * from './webpack-build-development';
55
export * from './webpack-build-utils';
6-
export * from './webpack-build-vendors';
76

87
export * from './webpack-karma-config';

addon/ng2/models/save-for-later.ts

+91
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,97 @@
169169
// Webpack Configuration Object
170170
// Used in build.ts
171171

172+
// var webpack = require('webpack');
173+
// var path = require('path');
174+
175+
176+
// // Webpack Config
177+
// var webpackConfig = {
178+
// devtool: "#source-map",
179+
// entry: {
180+
// 'angular2polyfills': [
181+
// // 'ie-shim',
182+
// 'core-js/es6/symbol',
183+
// 'core-js/es6/object',
184+
// 'core-js/es6/function',
185+
// 'core-js/es6/parse-int',
186+
// 'core-js/es6/parse-float',
187+
// 'core-js/es6/number',
188+
// 'core-js/es6/math',
189+
// 'core-js/es6/string',
190+
// 'core-js/es6/date',
191+
// 'core-js/es6/array',
192+
// 'core-js/es6/regexp',
193+
// 'core-js/es6/map',
194+
// 'core-js/es6/set',
195+
// 'core-js/es6/weak-map',
196+
// 'core-js/es6/weak-set',
197+
// 'core-js/es6/typed',
198+
// 'core-js/es6/reflect',
199+
// // 'core-js/es6/promise', // problem with firefox
200+
// 'core-js/es7/reflect',
201+
// 'zone.js/dist/zone',
202+
// 'zone.js/dist/long-stack-trace-zone',
203+
// ],
204+
// 'angular2vendor': [
205+
// '@angular/platform-browser',
206+
// '@angular/platform-browser-dynamic',
207+
// '@angular/core',
208+
// '@angular/common',
209+
// '@angular/forms',
210+
// '@angular/http',
211+
// '@angular/router',
212+
// ]
213+
// },
214+
215+
// output: {
216+
// path: './dist',
217+
// filename: 'dll.[name].[hash].bundle.js',
218+
// sourceMapFilename: '[name].map',
219+
// chunkFilename: '[id].chunk.js',
220+
// library: '__DLL_[name]',
221+
// },
222+
223+
224+
// plugins: [
225+
// new webpack.DllPlugin({
226+
// name: '[vendor]',
227+
// path: 'dist/vendor-manifest.json',
228+
// }),
229+
// new webpack.DllPlugin({
230+
// name: 'polyfills',
231+
// path: 'dist/polyfills-manifest.json',
232+
// }),
233+
// ],
234+
235+
// module: {
236+
// preLoaders: [
237+
// {
238+
// test: /\.js$/,
239+
// loader: 'source-map-loader',
240+
// exclude: [
241+
// // these packages have problems with their sourcemaps
242+
// path.resolve(__dirname, 'node_modules', 'rxjs'),
243+
// path.resolve(__dirname, 'node_modules', '@angular'),
244+
// path.resolve(__dirname, 'node_modules', '@ngrx'),
245+
// path.resolve(__dirname, 'node_modules', '@angular2-material'),
246+
// ]
247+
// }
248+
249+
// ],
250+
// loaders: [
251+
// ]
252+
// },
253+
254+
// node: {
255+
// global: 'window',
256+
// crypto: 'empty',
257+
// module: false,
258+
// clearImmediate: false,
259+
// setImmediate: false
260+
// }
261+
262+
// };
172263

173264

174265

addon/ng2/models/webpack-build-dll.ts

-92
This file was deleted.

addon/ng2/tasks/build-webpack-dll.ts

-43
This file was deleted.

0 commit comments

Comments
 (0)