Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
fix bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Jul 5, 2017
1 parent 85e4028 commit 58a4e1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -69,7 +69,7 @@ build-css-loader:
uglifyjs browser/layout/src/css-loader.js -o browser/layout/partials/css-loader.html

build-bundle:
webpack --bail --config build/deploy/webpack.deploy.config.js --define process.env.NODE_ENV="'production'"
webpack -p --bail --config build/deploy/webpack.deploy.config.js

build-dist: build-bundle build-css-loader
node ./build/deploy/build-auxilliary-files.js
Expand Down
7 changes: 0 additions & 7 deletions build/deploy/webpack.deploy.config.js
Expand Up @@ -6,7 +6,6 @@ If you need to add any config which will be shared amongst an n-ui build and an
app build please add it to the common config.
*/

const webpack = require('webpack');
const webpackMerge = require('webpack-merge');
const ExtractCssBlockPlugin = require('extract-css-block-webpack-plugin');
const commonConfig = require('../webpack.common.config.js');
Expand All @@ -22,11 +21,5 @@ module.exports = webpackMerge(commonConfig, {
plugins: [
// splits one stylesheet into multiple stylesheets based on nUiStylesheetStart/End comments
new ExtractCssBlockPlugin(),

// Minify & Uglify all the JS
new webpack.optimize.UglifyJsPlugin({
test: /\.min\.js$/,
sourceMap: true
}),
],
});
2 changes: 2 additions & 0 deletions server/lib/asset-manager/middleware-factory.js
Expand Up @@ -33,10 +33,12 @@ module.exports = ({

getAssetUrl({
file: 'font-loader.js',
flags: res.locals.flags,
isNUi: true
}),
getAssetUrl({
file: 'o-errors.js',
flags: res.locals.flags,
isNUi: true
}),
getAssetUrl({
Expand Down

0 comments on commit 58a4e1b

Please sign in to comment.