Closed ganyariya closed 6 years ago
you have a repository to help you better and see the problem faster
Thank you for your advice. I made my repository. https://github.com/Ganariya/AtCoderBookMark
script/mypage.js is read by htmls/atcoder.html. And I want to use vuesax in mypage.js. But, webpack cannot compile with such that error.
@Ganariya How do I execute the project? and why do not you use vue CLI 3
You can execute "npm start" and make files in dist. But it will be bad with error.
I didn't know vue CLI3 and, I had no confidence to integrate chrome extension's source code into vue CLI3.
@Ganariya Still have the error?
@Ganariya Did you find a solution? I have the same issue
Nevermind, found the solution. For future devs:
npm install babel-plugin-css-modules-transform --save-dev
module.exports = {
plugins: [
[
"css-modules-transform",
{
extractCss: "./node_modules/vuesax/dist/vuesax.css"
}
]
]
}
Hello, I'd like to use vuesax , but I can't import vuesax.
Below, I write my environment
And, my package.json is here.
And wepback config is here.
I tried to import vuesax
But, webpack can't compile vuesax and error massage exists.
I think that the reason why I can't import is vuesax and babel-loader isn't compatible. How can I import vuesax?
Thank you.