mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-11 01:55:40 +00:00
add mcaptcha-browser as dep
This commit is contained in:
4
Makefile
4
Makefile
@@ -3,6 +3,7 @@ default: frontend
|
||||
|
||||
clean:
|
||||
cargo clean
|
||||
rm -rf browser/pkg || true
|
||||
rm ./src/cache_buster_data.json || true
|
||||
rm -rf ./static/cache/bundle || true
|
||||
rm -rf ./assets || true
|
||||
@@ -48,7 +49,8 @@ run: frontend
|
||||
cargo run
|
||||
|
||||
test: frontend-test frontend
|
||||
tree assets || true
|
||||
echo 'static/' && tree static || true
|
||||
echo 'tree/' && tree assets || true
|
||||
cargo test --all-features --no-fail-fast
|
||||
|
||||
xml-test-coverage: migrate
|
||||
|
||||
2
build.rs
2
build.rs
@@ -51,7 +51,7 @@ fn cache_bust() {
|
||||
let no_hash = vec![NoHashCategory::FileExtentions(vec!["wasm"])];
|
||||
|
||||
let config = BusterBuilder::default()
|
||||
.source("./static/cache")
|
||||
.source("./static/cache/")
|
||||
.result("./assets")
|
||||
.copy(true)
|
||||
.no_hash(no_hash)
|
||||
|
||||
@@ -29,5 +29,8 @@
|
||||
"webpack": "^5.0.0",
|
||||
"webpack-cli": "^4.6.0",
|
||||
"webpack-dev-server": "^3.1.14"
|
||||
},
|
||||
"dependencies": {
|
||||
"mcaptcha-browser": "./browser/pkg/"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
* MIT or <http://www.apache.org/licenses/LICENSE-2.0> for Apache.
|
||||
*/
|
||||
|
||||
import {gen_pow} from '../../../browser/pkg/mcaptcha_browser';
|
||||
import {gen_pow} from 'mcaptcha-browser';
|
||||
import {PoWConfig} from './fetchPoWConfig';
|
||||
import * as CONST from './const';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user