-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathnico.production.js
More file actions
30 lines (28 loc) · 880 Bytes
/
nico.production.js
File metadata and controls
30 lines (28 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
var nicoConfig = require('./nico');
var webpack = require('webpack');
var webpackConfig = require('./webpack.config.min');
var webpackCompiler = webpack(webpackConfig);
// nicoConfig.site.urlPrefix = '';
nicoConfig.site.urlPrefix = '//g.alicdn.com/uxcore/site';
nicoConfig.middlewares = [{
name: 'webpackDevMiddleware',
filter: /\.(js|css)(\.map)?$/,
handle: function(req, res, next) {
handler = handler || webpackMiddleware(webpackCompiler, {
publicPath: '/static/',
lazy: true,
stats: {
version: true,
hash: false,
cached: false,
cachedAssets: false,
colors: true,
timings: true
}
});
try {
return handler(req, res, next);
} catch(e) {}
}
}];
module.exports = nicoConfig;