-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Is it possible to bundle wordpos and the WordNet data files with Webpack? I've tried the following configuration, but it fails to resolve the index files when run.
webpack.config.js:
resolve: {
alias: {
"wordpos-web": path.resolve(__dirname, "node_modules/wordpos-web/dist/wordpos.min.js")
}
}
WordPOS construction:
import WordPOS from "wordpos-web"
let wordpos = new WordPOS({
dictPath: "../../../node_modules/wordpos-web/dict", // also tried "../dict"
});
I tried importing the index files so they would be bundled:
import "../../../node_modules/wordpos-web/dict/index.adv.js"
import "../../../node_modules/wordpos-web/dict/index.noun.js"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels