Skip to content

Commit

Permalink
reproduce the bug
Browse files Browse the repository at this point in the history
  • Loading branch information
w1ndy committed Jan 24, 2018
1 parent a258966 commit 8c4d9e2
Show file tree
Hide file tree
Showing 5 changed files with 449 additions and 23 deletions.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"build": "node build/build.js"
},
"dependencies": {
"vue": "^2.5.2"
"node-sass": "^4.7.2",
"sass-loader": "^6.0.6",
"vue": "^2.5.2",
"worker-loader": "^1.1.0"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
Expand Down
10 changes: 10 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,19 @@

<script>
import HelloWorld from './components/HelloWorld'
import { SOME_CONSTANT } from './assets/test.scss'
import TestWorker from 'worker-loader!./assets/test.worker.js'
export default {
name: 'App',
mounted () {
console.log('The value of the constant is', SOME_CONSTANT)
},
data () {
return {
worker: new TestWorker()
}
},
components: {
HelloWorld
}
Expand Down
6 changes: 6 additions & 0 deletions src/assets/test.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
$SOME_CONSTANT: 1px;

:export {
SOME_CONSTANT: $SOME_CONSTANT;
}

4 changes: 4 additions & 0 deletions src/assets/test.worker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import { SOME_CONSTANT } from './test.scss'

console.log('This is a webworker! I\'ll do calculation with the constants defined in styles.')

0 comments on commit 8c4d9e2

Please sign in to comment.