-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add webpack + chrono node for better date/time fields
- Loading branch information
1 parent
30dbbf6
commit 095df1f
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ vendor | |
node_modules | ||
package-lock.json | ||
.php-cs-fixer.cache | ||
bundles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
{ | ||
"dependencies": { | ||
"chrono-node": "^2.7.6", | ||
"htm": "^3.1.1", | ||
"jquery": "^3.6.1", | ||
"jquery-migrate": "^3.4.0", | ||
"sass": "^1.69.5" | ||
}, | ||
"devDependencies": { | ||
"video.js": "^8.10.0" | ||
"video.js": "^8.10.0", | ||
"webpack": "^5.92.0", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"scripts": { | ||
"build": "webpack --config webpack.config.js", | ||
"postinstall": "npm run build" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const path = require('path'); | ||
|
||
module.exports = { | ||
mode: 'production', | ||
entry: './node_modules/chrono-node/dist/esm/index.js', // path to chrono-node | ||
output: { | ||
filename: 'chrono-bundle.js', // the name of the bundled output file | ||
path: path.resolve(__dirname, 'bundles'), // directory where the output file should be stored | ||
library: 'chrono', // the name of the global variable under which the library will be accessible | ||
libraryTarget: 'umd', // makes the library compatible with different environments (e.g., CommonJS, AMD, global) | ||
}, | ||
}; |