mirror of
https://github.com/openstf/stf
synced 2025-10-06 03:50:04 +02:00
Fast rebuilds.
This commit is contained in:
parent
a771952339
commit
8e674928ea
3 changed files with 11 additions and 17 deletions
|
@ -45,7 +45,7 @@ module.exports = function(options) {
|
||||||
app.use(webpackMiddleware(webpack( {
|
app.use(webpackMiddleware(webpack( {
|
||||||
cache: true,
|
cache: true,
|
||||||
debug: true,
|
debug: true,
|
||||||
devtool: 'inline-source-map',
|
devtool: 'eval',
|
||||||
entry: pathutil.resource('app') + '/entry.js',
|
entry: pathutil.resource('app') + '/entry.js',
|
||||||
output: {
|
output: {
|
||||||
path: '/static/build/',
|
path: '/static/build/',
|
||||||
|
|
|
@ -1,18 +1,16 @@
|
||||||
require('angular')
|
require('angular')
|
||||||
require('angular-route')
|
require('angular-route')
|
||||||
|
|
||||||
var app = angular.module('app', [
|
angular.module('app', [
|
||||||
'ngRoute',
|
'ngRoute',
|
||||||
require('./components/device-list').name
|
require('./components/device-list').name
|
||||||
])
|
])
|
||||||
|
.config(['$routeProvider', '$locationProvider',
|
||||||
|
function ($routeProvider, $locationProvider) {
|
||||||
app.config(['$routeProvider', '$locationProvider',
|
$locationProvider.hashPrefix('!');
|
||||||
function ($routeProvider, $locationProvider) {
|
$routeProvider
|
||||||
$locationProvider.hashPrefix('!');
|
.otherwise({
|
||||||
$routeProvider
|
redirectTo: '/devices'
|
||||||
.otherwise({
|
})
|
||||||
redirectTo: '/devices'
|
}
|
||||||
})
|
])
|
||||||
}
|
|
||||||
])
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
{
|
|
||||||
"name": "device-list",
|
|
||||||
"version": "0.0.1"
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue