Skip to content

Commit

Permalink
publish
Browse files Browse the repository at this point in the history
  • Loading branch information
3y3k0 committed May 30, 2023
1 parent dd4fbfc commit ad8b62e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"build": "webpack",
"test": "echo \"Error: no test specified\" && exit 1"
"prepublish": "npm run build"
},
"author": "",
"license": "ISC",
Expand Down
18 changes: 6 additions & 12 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const {resolve} = require('path');
const {DefinePlugin} = require('webpack');
const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');
// const {BundleAnalyzerPlugin} = require('webpack-bundle-analyzer');

function config({isServer}) {
return {
Expand All @@ -11,12 +11,6 @@ function config({isServer}) {
externals: isServer ? {
'react': 'react',
'react-dom': 'react-dom',
// 'react': {
// commonjs: 'react',
// },
// 'react-dom': {
// commonjs: 'react-dom',
// },
} : {},
output: {
path: resolve(__dirname, 'build'),
Expand All @@ -35,11 +29,11 @@ function config({isServer}) {
BROWSER: !isServer
}
}),
new BundleAnalyzerPlugin({
analyzerMode: 'static',
openAnalyzer: false,
reportFilename: (isServer ? 'server-' : 'client-') + 'stats.html',
})
// new BundleAnalyzerPlugin({
// analyzerMode: 'static',
// openAnalyzer: false,
// reportFilename: (isServer ? 'server-' : 'client-') + 'stats.html',
// })
],
module: {
rules: [
Expand Down

0 comments on commit ad8b62e

Please sign in to comment.