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

Commit

Permalink
use node-sass for deploy build
Browse files Browse the repository at this point in the history
 🐿2.5.10
  • Loading branch information
leggsimon committed Jul 25, 2017
1 parent b61944f commit 187b359
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ build-production:
build-bundle

build-bundle:
webpack -p --bail --config build/deploy/webpack.deploy.config.js
concurrently --kill-others-on-fail \
"webpack -p --bail --config build/deploy/webpack.deploy.config.js" \
"./scripts/build-sass.sh browser/bundles/main.scss public/n-ui/n-ui-core.css"

build-dist: build-bundle build-css-loader
node ./build/deploy/build-auxilliary-files.js
Expand Down
12 changes: 1 addition & 11 deletions build/deploy/webpack.deploy.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,9 @@ app build please add it to the common config.
*/

const webpackMerge = require('webpack-merge');
const ExtractCssBlockPlugin = require('extract-css-block-webpack-plugin');
const commonConfig = require('../webpack.common.config.js');
const appShellEntryPoints = require('../app-shell-entry-points');

module.exports = webpackMerge(commonConfig, {

entry: Object.assign({}, appShellEntryPoints, {
'./public/n-ui/n-ui-core.css': './browser/bundles/main.scss'
}),

// These plugins are added to the common plugins rather than replacing them
plugins: [
// splits one stylesheet into multiple stylesheets based on nUiStylesheetStart/End comments
new ExtractCssBlockPlugin(),
],
entry: appShellEntryPoints,
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"ms": "^0.7.2",
"node-sass": "^4.5.3",
"postcss-cli": "^4.1.0",
"postcss-extract-css-block": "^0.0.3",
"postcss-extract-css-block": "^0.1.0",
"postcss-loader": "^2.0.5",
"preact": "^7.1.0",
"preact-compat": "^3.11.0",
Expand Down

0 comments on commit 187b359

Please sign in to comment.