File tree Expand file tree Collapse file tree 4 files changed +22
-22
lines changed Expand file tree Collapse file tree 4 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -9,27 +9,27 @@ exports.pages = function (env, folder = '') {
9
9
10
10
fs . readdirSync ( viewsFolder ) . forEach ( view => {
11
11
if ( view . split ( '.' ) [ 1 ] === undefined )
12
- return false ;
12
+ return false
13
13
14
- const viewName = view . split ( '.' ) [ 0 ] ;
15
- const fileName = folder === '' ? `${ viewName } /index.html` : `${ folder } /${ viewName } /index.html` ;
14
+ const viewName = view . split ( '.' ) [ 0 ]
15
+ const fileName = folder === '' ? `${ viewName } /index.html` : `${ folder } /${ viewName } /index.html`
16
16
const options = {
17
17
minify : ! env === 'development' ,
18
18
filename : fileName ,
19
19
template : `views/${ rootPagesFolderName } /${ folder } /${ view } ` ,
20
20
inject : true
21
- } ;
21
+ }
22
22
23
23
if ( env === 'development' ) {
24
24
options . minify = {
25
25
removeComments : true ,
26
26
collapseWhitespace : true ,
27
27
removeAttributeQuotes : true
28
- } ;
28
+ }
29
29
}
30
30
31
- pages . push ( new HtmlWebpackPlugin ( options ) ) ;
31
+ pages . push ( new HtmlWebpackPlugin ( options ) )
32
32
} )
33
33
34
- return pages ;
34
+ return pages
35
35
}
Original file line number Diff line number Diff line change 1
1
// Libraries
2
- require ( '../postcss.config' ) ;
2
+ require ( '../postcss.config' )
3
3
4
- const path = require ( 'path' ) ;
5
- const webpack = require ( 'webpack' ) ;
6
- const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
7
- const WebpackNotifierPlugin = require ( 'webpack-notifier' ) ;
8
- const CopyWebpackPlugin = require ( 'copy-webpack-plugin' ) ;
9
- const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' ) ;
10
- const TerserPlugin = require ( 'terser-webpack-plugin' ) ;
11
- const OptimizeCSSAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' ) ;
4
+ const path = require ( 'path' )
5
+ const webpack = require ( 'webpack' )
6
+ const HtmlWebpackPlugin = require ( 'html-webpack-plugin' )
7
+ const WebpackNotifierPlugin = require ( 'webpack-notifier' )
8
+ const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
9
+ const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
10
+ const TerserPlugin = require ( 'terser-webpack-plugin' )
11
+ const OptimizeCSSAssetsPlugin = require ( 'optimize-css-assets-webpack-plugin' )
12
12
13
- const ASSET_PATH = process . env . ASSET_PATH || '/' ;
13
+ const ASSET_PATH = process . env . ASSET_PATH || '/'
14
14
15
15
16
16
// Files
@@ -184,4 +184,4 @@ module.exports = env => {
184
184
} )
185
185
]
186
186
}
187
- } ;
187
+ }
Original file line number Diff line number Diff line change 1
1
/* src/app.js */
2
2
3
3
// Styles
4
- import 'styles/_app.scss' ;
4
+ import 'styles/_app.scss'
5
5
6
6
$ ( function ( ) {
7
- console . log ( 'Ready!' ) ;
7
+ console . log ( 'Ready!' )
8
8
9
- require ( 'scripts/demo' ) ;
9
+ require ( 'scripts/demo' )
10
10
} )
Original file line number Diff line number Diff line change 1
- console . log ( 'Demo!' ) ;
1
+ console . log ( 'Demo!' )
You can’t perform that action at this time.
0 commit comments