mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
chore(e2e): update e2e scripts
This commit is contained in:

committed by
Adam Bradley

parent
4260940814
commit
17fe72e4bc
@ -1,30 +1,34 @@
|
||||
var entryData = require('./webpackEntryPoints.json');
|
||||
var path = require('path')
|
||||
|
||||
entryData["dist/e2e/vendor"] = "./scripts/e2e/vendor";
|
||||
entryData["dist/e2e/polyfills"] = "./scripts/e2e/polyfills";
|
||||
|
||||
module.exports = {
|
||||
externals: [
|
||||
{
|
||||
'src/ionic': {
|
||||
commonjs2: 'src/ionic'
|
||||
},
|
||||
'@angular/core': {
|
||||
commonjs2: ['angular2', 'core']
|
||||
},
|
||||
'@angular/common': {
|
||||
commonjs2: ['angular2', 'common']
|
||||
},
|
||||
'@angular/forms' : {
|
||||
commonjs2: ['angular2', 'forms']
|
||||
},
|
||||
'@angular/http': {
|
||||
commonjs2: ['angular2', 'http']
|
||||
},
|
||||
'@angular/platform-browser-dynamic': {
|
||||
commonjs2: ['angular2', 'platform', 'browser']
|
||||
},
|
||||
}
|
||||
],
|
||||
module: {
|
||||
loaders: [{ test: /\.ts$/, loader: "awesome-typescript-loader" }]
|
||||
devtool: "source-map",
|
||||
|
||||
entry: entryData,
|
||||
|
||||
output: {
|
||||
"path": path.join(__dirname, '../../'),
|
||||
"filename": "[name].js"
|
||||
},
|
||||
|
||||
resolve: {
|
||||
extensions: ["", ".js", ".ts"]
|
||||
}
|
||||
extensions: ["", ".js", ".json"],
|
||||
mainFields: ["module", "browser"]
|
||||
},
|
||||
|
||||
module: {
|
||||
loaders: [
|
||||
{
|
||||
test : /\.css$/,
|
||||
loader : 'file-loader?config=cssLoader'
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
cssLoader: {
|
||||
name: 'test/css/[name]-[hash].[ext]'
|
||||
},
|
||||
};
|
||||
|
Reference in New Issue
Block a user