mirror of
https://github.com/openstf/stf
synced 2025-10-03 09:49:17 +02:00
Added JSCS style checking.
However, there are thousands of errors: it may need some rule relaxing. Still needs to check for JSHint overlap. Heated rules left out: "disallowAnonymousFunctions": true, "disallowCommaBeforeLineBreak": true "requireCommaBeforeLineBreak": true, "disallowKeywordsOnNewLine": true, "requireKeywordsOnNewLine": true
This commit is contained in:
parent
883fce71ea
commit
2445b179ee
3 changed files with 115 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
var pathutil = require('./lib/util/pathutil')
|
||||
var webpack = require('webpack')
|
||||
var CommonsChunkPlugin = require("webpack/lib/optimize/CommonsChunkPlugin")
|
||||
var CommonsChunkPlugin = require('webpack/lib/optimize/CommonsChunkPlugin')
|
||||
|
||||
module.exports = {
|
||||
webpack: {
|
||||
|
@ -38,14 +38,14 @@ module.exports = {
|
|||
{ test: /\.css$/, loader: 'style!css' },
|
||||
{ test: /\.less$/, loader: 'style-loader!css-loader!less-loader'},
|
||||
{ test: /\.json$/, loader: 'json' },
|
||||
{ test: /\.jpg$/, loader: "url-loader?limit=1000&mimetype=image/jpeg" },
|
||||
{ test: /\.png$/, loader: "url-loader?limit=1000&mimetype=image/png" },
|
||||
{ test: /\.gif$/, loader: "url-loader?limit=1000&mimetype=image/gif" },
|
||||
{ test: /\.svg/, loader: "url-loader?limit=1&mimetype=image/svg+xml" },
|
||||
{ test: /\.woff/, loader: "url-loader?limit=1&mimetype=application/font-woff" },
|
||||
{ test: /\.otf/, loader: "url-loader?limit=1&mimetype=application/font-woff" },
|
||||
{ test: /\.ttf/, loader: "url-loader?limit=1&mimetype=application/font-woff" },
|
||||
{ test: /\.eot/, loader: "url-loader?limit=1&mimetype=vnd.ms-fontobject" },
|
||||
{ test: /\.jpg$/, loader: 'url-loader?limit=1000&mimetype=image/jpeg' },
|
||||
{ test: /\.png$/, loader: 'url-loader?limit=1000&mimetype=image/png' },
|
||||
{ test: /\.gif$/, loader: 'url-loader?limit=1000&mimetype=image/gif' },
|
||||
{ test: /\.svg/, loader: 'url-loader?limit=1&mimetype=image/svg+xml' },
|
||||
{ test: /\.woff/, loader: 'url-loader?limit=1&mimetype=application/font-woff' },
|
||||
{ test: /\.otf/, loader: 'url-loader?limit=1&mimetype=application/font-woff' },
|
||||
{ test: /\.ttf/, loader: 'url-loader?limit=1&mimetype=application/font-woff' },
|
||||
{ test: /\.eot/, loader: 'url-loader?limit=1&mimetype=vnd.ms-fontobject' },
|
||||
{ test: /\.jade$/, loader: 'template-html-loader' },
|
||||
{ test: /\.html$/, loader: 'html-loader' },
|
||||
{ test: /angular\.js$/, loader: 'exports?angular'},
|
||||
|
@ -82,7 +82,7 @@ module.exports = {
|
|||
, ['main']
|
||||
)
|
||||
)
|
||||
, new CommonsChunkPlugin("entry/commons.entry.js")
|
||||
, new CommonsChunkPlugin('entry/commons.entry.js')
|
||||
]
|
||||
},
|
||||
webpackServer: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue