Skip to content

Commit

Permalink
Merge pull request #28 from davidecaruso/improve-build
Browse files Browse the repository at this point in the history
Improve build
  • Loading branch information
davidecaruso authored Aug 7, 2022
2 parents 9ef83ff + 48f5ab0 commit 69b81ba
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
6 changes: 3 additions & 3 deletions mocha.module.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
let hook = require('css-modules-require-hook')
let sass = require('node-sass')
let path = require('path')
const hook = require('css-modules-require-hook')
const sass = require('node-sass')
const path = require('path')

hook({
extensions: ['.scss'],
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shell.js",
"version": "4.0.3",
"version": "4.0.4",
"description": "A JavaScript library to create HTML terminals in web pages.",
"author": "Davide Caruso <[email protected]>",
"homepage": "https://shelljs.io",
Expand Down
1 change: 0 additions & 1 deletion webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ const lib = path.join(__dirname, 'lib')
const library = 'shell'

module.exports = {
devtool: 'nosources-source-map',
entry: {
[library]: [`${assets}/style/main.scss`, `${src}/index.ts`],
},
Expand Down
2 changes: 1 addition & 1 deletion webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ module.exports = require('webpack-merge')(require('./webpack.common'), {
output: { filename: '[name].min.js' },
optimization: {
minimize: true,
minimizer: [new (require('terser-webpack-plugin'))()],
minimizer: [new (require('terser-webpack-plugin'))({ extractComments: false })],
},
})

0 comments on commit 69b81ba

Please sign in to comment.