Skip to content

Commit 69b81ba

Browse files
authored
Merge pull request #28 from davidecaruso/improve-build
Improve build
2 parents 9ef83ff + 48f5ab0 commit 69b81ba

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

mocha.module.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
let hook = require('css-modules-require-hook')
2-
let sass = require('node-sass')
3-
let path = require('path')
1+
const hook = require('css-modules-require-hook')
2+
const sass = require('node-sass')
3+
const path = require('path')
44

55
hook({
66
extensions: ['.scss'],

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "shell.js",
3-
"version": "4.0.3",
3+
"version": "4.0.4",
44
"description": "A JavaScript library to create HTML terminals in web pages.",
55
"author": "Davide Caruso <davide.caruso93@gmail.com>",
66
"homepage": "https://shelljs.io",

webpack.common.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ const lib = path.join(__dirname, 'lib')
99
const library = 'shell'
1010

1111
module.exports = {
12-
devtool: 'nosources-source-map',
1312
entry: {
1413
[library]: [`${assets}/style/main.scss`, `${src}/index.ts`],
1514
},

webpack.prod.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = require('webpack-merge')(require('./webpack.common'), {
33
output: { filename: '[name].min.js' },
44
optimization: {
55
minimize: true,
6-
minimizer: [new (require('terser-webpack-plugin'))()],
6+
minimizer: [new (require('terser-webpack-plugin'))({ extractComments: false })],
77
},
88
})

0 commit comments

Comments
 (0)