This repository was archived by the owner on Feb 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed
Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change 11// shared config (dev and prod)
2- const { resolve} = require ( 'path' ) ;
3- const { CheckerPlugin} = require ( 'awesome-typescript-loader' ) ;
4- const StyleLintPlugin = require ( 'stylelint-webpack-plugin' ) ;
2+ const { resolve} = require ( 'path' ) ;
3+ const { CheckerPlugin} = require ( 'awesome-typescript-loader' ) ;
4+ const StyleLintPlugin = require ( 'stylelint-webpack-plugin' ) ;
55const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
66
77module . exports = {
Original file line number Diff line number Diff line change 11// development config
2- const merge = require ( 'webpack-merge' ) ;
3- const webpack = require ( 'webpack' ) ;
2+ const merge = require ( 'webpack-merge' ) ;
3+ const webpack = require ( 'webpack' ) ;
44const commonConfig = require ( './common' ) ;
55
66module . exports = merge ( commonConfig , {
Original file line number Diff line number Diff line change 11// production config
2- const merge = require ( 'webpack-merge' ) ;
2+ const merge = require ( 'webpack-merge' ) ;
33const { resolve} = require ( 'path' ) ;
44
55const commonConfig = require ( './common' ) ;
Original file line number Diff line number Diff line change 1- const express = require ( 'express' ) ;
2- const app = express ( ) ;
1+ const express = require ( 'express' ) ;
2+ const app = express ( ) ;
33const portNumber = 3000 ;
4- const sourceDir = 'dist' ;
4+ const sourceDir = 'dist' ;
55
66app . use ( express . static ( sourceDir ) ) ;
77
Original file line number Diff line number Diff line change 1+ $bg-color : yellow ;
2+ $border-color : red ;
3+
14.app {
25 font-family : helvetica , arial , sans-serif ;
36 padding : 2em ;
4- border : 5px solid red ;
7+ border : 5px solid $border-color ;
58
69 p {
7- background-color : yellow ;
10+ background-color : $bg-color ;
811 }
912}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ render(
1313) ;
1414
1515// Hot Module Replacement API
16- declare let module : { hot : any } ;
16+ declare let module : { hot : any } ;
1717
1818if ( module . hot ) {
1919 module . hot . accept ( "./components/App" , ( ) => {
You can’t perform that action at this time.
0 commit comments