npm installnpm start- Check
./distfolder, it should have abundle.jsand anassets/bundle-<hash>.cssfile. (Mine wasbundle-d363bc08.css). - Change
index.js - Check the
./dist/assetsfolder again. Has the css file changed its hash?
Created
November 6, 2018 05:17
-
-
Save tivac/a07d38ada6f3119aa663da7760f822bb to your computer and use it in GitHub Desktop.
modular-css issue #525
This file contains hidden or 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
| .one { | |
| color: olive; | |
| } |
This file contains hidden or 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
| const css = import("./index.css"); | |
| console.log(3, css); |
This file contains hidden or 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
| { | |
| "name": "rollup-hashing", | |
| "version": "1.0.0", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "rollup --config --watch" | |
| }, | |
| "license": "UNLICENSED", | |
| "devDependencies": { | |
| "@modular-css/rollup": "^17.0.0", | |
| "rollup": "^0.67.0" | |
| } | |
| } |
This file contains hidden or 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
| module.exports = { | |
| input : "index.js", | |
| output : { | |
| file : "dist/bundle.js", | |
| format : "esm" | |
| }, | |
| plugins : [ | |
| require("@modular-css/rollup")() | |
| ] | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment