mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 00:23:25 +02:00
Improved layout.
This commit is contained in:
@@ -3,10 +3,9 @@ var webpack = require('webpack')
|
||||
|
||||
var pathutil = require('../util/pathutil')
|
||||
|
||||
module.exports = webpackMiddleware(webpack({
|
||||
var webpackConfig = webpackMiddleware(webpack({
|
||||
cache: true,
|
||||
debug: true,
|
||||
// devtool: 'eval-source-map',
|
||||
devtool: 'eval',
|
||||
entry: pathutil.resource('app') + '/app.js',
|
||||
output: {
|
||||
@@ -16,7 +15,7 @@ module.exports = webpackMiddleware(webpack({
|
||||
resolve: {
|
||||
modulesDirectories: [
|
||||
pathutil.resource('lib'),
|
||||
pathutil.resource('app') + '/components',
|
||||
pathutil.resource('app') + '/components',
|
||||
'web_modules',
|
||||
'./../../node_modules'
|
||||
],
|
||||
@@ -44,9 +43,6 @@ module.exports = webpackMiddleware(webpack({
|
||||
new webpack.ResolverPlugin(
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('.bower.json', ['main'])
|
||||
)
|
||||
// new webpack.ProvidePlugin({
|
||||
// angular: 'angular'
|
||||
// })
|
||||
//new webpack.optimize.UglifyJsPlugin()
|
||||
]
|
||||
}), {
|
||||
@@ -58,3 +54,5 @@ module.exports = webpackMiddleware(webpack({
|
||||
colors: true
|
||||
}
|
||||
})
|
||||
|
||||
module.exports = webpackConfig
|
||||
Reference in New Issue
Block a user