Skip to content

Commit

Permalink
Do not minify the build by default
Browse files Browse the repository at this point in the history
Minification is usually the job of the consumer of solid-panes,
although we do still ship a minifed version for those wishing to
include the script directly.
  • Loading branch information
Vinnl committed Oct 31, 2019
1 parent 03aa1bd commit 49de3b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Solid-compatible Panes: applets and views for the mashlib and databrowser",
"main": "dist/main.js",
"scripts": {
"build": "npm run clean && npm run build-dist",
"build": "npm run clean && npm run build-dist && npm run build-dev",
"build-browserified": "npm run build",
"build-dist": "npm run pre && webpack --progress --colors --mode=production",
"build-dev": "npm run pre && webpack --progress --colors --mode=development",
Expand Down
6 changes: 3 additions & 3 deletions versionInfo.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module.exports = {
buildTime: "2019-10-22T10:14:10Z",
commit: "8c3850664d55cf1c65bb68cf992f7071ba9acc12",
buildTime: "2019-10-31T18:14:29Z",
commit: "03aa1bda71a9f72aa22589de58dbe43f8eff58b3",
npmInfo:
{
'solid-panes': '2.0.2',
'solid-panes': '2.0.3',
npm: '6.9.0',
ares: '1.15.0',
brotli: '1.0.7',
Expand Down
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ const path = require('path');
const webpack = require('webpack');
const ForkTsCheckerWebpackPlugin = require('fork-ts-checker-webpack-plugin');

module.exports = {
module.exports = (env, args) => ({
entry: './index.js',
output: {
filename: 'main.js',
filename: (args.mode === 'production') ? 'main.min.js' : 'main.js',
path: path.resolve(__dirname, 'dist'),
libraryTarget: 'commonjs2',
},
Expand Down Expand Up @@ -45,4 +45,4 @@ module.exports = {
fs: 'empty'
},
devtool: 'source-map'
}
})

0 comments on commit 49de3b9

Please sign in to comment.