Skip to content

Commit

Permalink
Update jsbundling-rails
Browse files Browse the repository at this point in the history
  • Loading branch information
taketo1113 committed Dec 10, 2024
1 parent bbd95ad commit 60ea67b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bin/dev
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ fi
# Default to port 3000 if not specified
export PORT="${PORT:-3000}"

exec foreman start -f Procfile.dev "$@"
exec foreman start -f Procfile.dev --env /dev/null "$@"
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "say",
"private": true,
"scripts": {
"build": "webpack --config webpack.config.js"
},
"dependencies": {
"@babel/core": "^7.18.6",
"@babel/preset-env": "^7.18.6",
Expand All @@ -17,9 +20,5 @@
"webpack": "^5.73.0",
"webpack-cli": "^5.1.0",
"webpack-remove-empty-scripts": "^1.0.0"
},
"devDependencies": {},
"scripts": {
"build": "webpack --config ./config/webpack/webpack.config.js"
}
}
8 changes: 4 additions & 4 deletions config/webpack/webpack.config.js → webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = {
filename: "[name].js",
sourceMapFilename: "[file].map",
chunkFormat: "module",
path: path.resolve(__dirname, "..", "..", "app/assets/builds"),
path: path.resolve(__dirname, "app/assets/builds"),
},
plugins: [
new webpack.optimize.LimitChunkCountPlugin({
Expand Down Expand Up @@ -60,9 +60,9 @@ module.exports = {
// Add additional file types
extensions: ['.js', '.jsx', '.scss', '.css'],
alias: {
'@js': path.resolve(__dirname, '..', '..', 'app/frontend', 'javascripts'),
'@components': path.resolve(__dirname, '..', '..', 'app/frontend', 'javascripts', 'components'),
'@css': path.resolve(__dirname, '..', '..', 'app/frontend', 'stylesheets')
'@js': path.resolve(__dirname, 'app/frontend', 'javascripts'),
'@components': path.resolve(__dirname, 'app/frontend', 'javascripts', 'components'),
'@css': path.resolve(__dirname, 'app/frontend', 'stylesheets')
}
}
}

0 comments on commit 60ea67b

Please sign in to comment.