mirror of
https://github.com/openstf/stf
synced 2025-10-03 17:59:28 +02:00
Fix all JSHint complaints in Node.js code.
This commit is contained in:
parent
f62ce4acc1
commit
b4416b5f0f
31 changed files with 126 additions and 119 deletions
|
@ -1,6 +1,5 @@
|
|||
var pathutil = require('./lib/util/pathutil')
|
||||
var webpack = require('webpack')
|
||||
var path = require('path')
|
||||
|
||||
module.exports = {
|
||||
cache: true,
|
||||
|
@ -30,12 +29,18 @@ module.exports = {
|
|||
{ test: /\.jpg$/, loader: "url-loader?limit=5000&mimetype=image/jpeg" },
|
||||
{ test: /\.png$/, loader: "url-loader?limit=5000&mimetype=image/png" },
|
||||
{ test: /\.gif$/, loader: "url-loader?limit=5000&mimetype=image/gif" },
|
||||
{ test: /\.svg$/, loader: "url-loader?limit=5000&mimetype=image/svg+xml" },
|
||||
{ test: /\.woff$/, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.otf$/, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.ttf$/, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.eot$/, loader: "url-loader?limit=5000&mimetype=vnd.ms-fontobject" },
|
||||
{ test: /\.jade/, loader: 'template-html-loader' },
|
||||
{ test: /\.svg$/
|
||||
, loader: "url-loader?limit=5000&mimetype=image/svg+xml" },
|
||||
{ test: /\.woff$/
|
||||
, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.otf$/
|
||||
, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.ttf$/
|
||||
, loader: "url-loader?limit=5000&mimetype=application/font-woff" },
|
||||
{ test: /\.eot$/
|
||||
, loader: "url-loader?limit=5000&mimetype=vnd.ms-fontobject" },
|
||||
{ test: /\.jade/
|
||||
, loader: 'template-html-loader' },
|
||||
{ test: /\.html/, loader: 'html-loader' },
|
||||
{ test: /angular\.js/, loader: 'exports?angular'},
|
||||
{ test: /angular-route\.js/, loader: 'imports?angular=angular'},
|
||||
|
@ -50,15 +55,16 @@ module.exports = {
|
|||
},
|
||||
plugins: [
|
||||
new webpack.ResolverPlugin(
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('bower.json', ['main'])
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(
|
||||
'bower.json'
|
||||
, ['main']
|
||||
)
|
||||
),
|
||||
new webpack.ResolverPlugin(
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('.bower.json', ['main'])
|
||||
new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin(
|
||||
'.bower.json'
|
||||
, ['main']
|
||||
)
|
||||
)
|
||||
|
||||
// new webpack.ResolverPlugin(
|
||||
// new webpack.ResolverPlugin.DirectoryDescriptionFilePlugin('package.json', ['main'])
|
||||
// )
|
||||
// ,new webpack.optimize.UglifyJsPlugin({mangle: false})
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue