Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Example using Webpack to build a FEND Browser App (with HTML/CSS/JS and Image files)

License

NotificationsYou must be signed in to change notification settings

devlinjunker/template.webpack.fend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version
0.8.0-SNAPSHOT

GitHub LicenseFOSSA Status
GitHub last commitGitHub Workflow Status
Dependency Check by DavidDev Dependency Check by David
ESDoc StatusCII Best Practices
GitHub issuesGitHub issues by-label

Intro

Template and Example using Webpack to build a FEND Browser App (with HTML/CSS/JS and Image files).

Demo:

  • Simple web interface for storing values in the Browser Local Storage.
  • Local Storage - Todo List
  • Partial Example (HTML/Javascript in modular files)

Dependencies/Frameworks

Node v12+ and npm

See package.json(github)for full list of current dependencies

Quick Setup/Run

How to use this template to create a basic Frontend Application:

  1. Download template and update dependencies
  2. Create HTML files insrc/
    • add HtmlWebpackPlugin instances for each new output page in webpack.config.js
    • add svg icons with@svg() using custom svg-pre-loader
  3. Add javascript files and create entry file (reference insrc/example/ directory)
    • add javascript entry point configs in webpack.config.js
    • create handlebars partials and import, then add to DOM
  4. Add CSS files tosrc/ and import in javascript
    • or install CSS libraries with npm and import
  5. Usenpm run start-watch to compile and run dev server + tests in watch mode
    • ornpm run start-dev to run the dev server and reload on changes
  6. Navigatehttp://localhost:3030/ to see a development version of your web app with Hot reloading

Tests/Running

npm run start-watch to run Karma + Mocha and watch for changes while also opening the Webpack dev server that will recompile the project and reload the webpage on file changes onhttp://localhost:3030

npm run test-watch to run Karma + Mocha and all of the tests associated with the project and watch for changes on the files to re-run the tests

npm run dev-watch to run the only webpack development server and watch for changes on the files to reload

npm run test-dev to start the unit test runner for debugging unit tests in the browser

npm run test to run all of the unit tests for the application one time

npm run lint to run the linter on src directory

npm run build compile application to public directory

npm run doc to generate static documentation in the doc folder

npm run doc-image to update sourcemap image and static documentation in the doc folder

TODO

npm run build-prod ... TODO: create prod config

npm run clean ... TODO: clean the workspace

npm run start start production

npm run stop stop production

npm run restart (should work after start/stop setup)

Links

Contributors

About

Example using Webpack to build a FEND Browser App (with HTML/CSS/JS and Image files)

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp