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

Commit

Permalink
demo build works
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Apr 20, 2017
1 parent be1d579 commit a70079d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/lib/addons/wrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Slightly modified version of entry-wrap-webpack-plugin https://github.com/shakyShane/entry-wrap-webpack-plugin
const ConcatSource = require('webpack-sources/lib/ConcatSource');
const ConcatSource = require('webpack/lib/ConcatSource');

function Wrap (before, after, options) {
this.options = options || {};
Expand Down
1 change: 1 addition & 0 deletions build/lib/head-css.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const ExtractCssBlockPlugin = require('extract-css-block-webpack-plugin');

module.exports = function (config) {
config.plugins.push(new ExtractCssBlockPlugin());
return config;
Expand Down
4 changes: 3 additions & 1 deletion demo/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const nWebpack = require('@financial-times/n-webpack');
const headCss = require('../build/lib/head-css')
const path = require('path');
const webPackConfig = headCss(nWebpack({
const webpackConfig = headCss(nWebpack({
withBabelPolyfills: false,
entry: {
'./public/main-without-n-ui.js': './demo/client/main.js',
Expand All @@ -15,4 +15,6 @@ const webPackConfig = headCss(nWebpack({
exclude: [/node_modules/]
}));

console.log(JSON.stringify(webpackConfig, null, 2))

module.exports = webpackConfig;
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
"@financial-times/n-express": "^19.0.0",
"@financial-times/n-handlebars": "^1.15.0",
"@financial-times/n-polyfill-io": "^1.0.9",
"@financial-times/n-webpack": "^2.0.0",
"@financial-times/next-json-ld": "^0.1.0",
"aws-sdk": "^2.7.21",
"chokidar": "^1.6.1",
Expand Down

0 comments on commit a70079d

Please sign in to comment.