Skip to content

Commit 5753f16

Browse files
committed
REMOVE: Semicolons
1 parent 5cfb19c commit 5753f16

File tree

4 files changed

+22
-22
lines changed

4 files changed

+22
-22
lines changed

build/utils.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ exports.pages = function (env, folder = '') {
99

1010
fs.readdirSync(viewsFolder).forEach(view => {
1111
if (view.split('.')[1] === undefined)
12-
return false;
12+
return false
1313

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`
1616
const options = {
1717
minify: !env === 'development',
1818
filename: fileName,
1919
template: `views/${rootPagesFolderName}/${folder}/${view}`,
2020
inject: true
21-
};
21+
}
2222

2323
if (env === 'development') {
2424
options.minify = {
2525
removeComments: true,
2626
collapseWhitespace: true,
2727
removeAttributeQuotes: true
28-
};
28+
}
2929
}
3030

31-
pages.push(new HtmlWebpackPlugin(options));
31+
pages.push(new HtmlWebpackPlugin(options))
3232
})
3333

34-
return pages;
34+
return pages
3535
}

build/webpack.config.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
// Libraries
2-
require('../postcss.config');
2+
require('../postcss.config')
33

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')
1212

13-
const ASSET_PATH = process.env.ASSET_PATH || '/';
13+
const ASSET_PATH = process.env.ASSET_PATH || '/'
1414

1515

1616
// Files
@@ -184,4 +184,4 @@ module.exports = env => {
184184
})
185185
]
186186
}
187-
};
187+
}

src/app.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/* src/app.js */
22

33
// Styles
4-
import 'styles/_app.scss';
4+
import 'styles/_app.scss'
55

66
$(function() {
7-
console.log('Ready!');
7+
console.log('Ready!')
88

9-
require('scripts/demo');
9+
require('scripts/demo')
1010
})

src/assets/scripts/demo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
console.log('Demo!');
1+
console.log('Demo!')

0 commit comments

Comments
 (0)