dest option not working as expected
See original GitHub issueI tried boiling down my test to the bare minimum but I still can’t seem to get this to work, is there anything I’m doing wrong here?
webpack.config.js
var CarteBlanche = require('carte-blanche');
var path = require('path');
module.exports = {
entry: './src/js/client.js',
output: {
path: 'dist',
filename: 'main.js',
},
plugins: [
new CarteBlanche({
componentRoot: './src/js/Components',
filter: /CategoryIcon\.js/,
}),
],
module: {
loaders: [
{
test: /\.js$/,
include: path.resolve('src/js'),
loader: 'babel',
},
],
},
};
CategoryIcon.js
import React from 'react';
import Glyphicon from 'react-bootstrap/lib/Glyphicon';
const CategoryIcon = ({icon}) => <Glyphicon glyph={icon} />;
CategoryIcon.propTypes = {
icon: React.PropTypes.string.isRequired,
};
export default CategoryIcon;
.babelrc
{
"presets": ["es2015","stage-0","react"],
"plugins": ["transform-decorators-legacy"]
}
This is what I get when I compile:
$ webpack
Variation server listening at localhost:8082
Hash: c984de3200651618229c
Version: webpack 1.13.1
Time: 10412ms
Asset Size Chunks Chunk Names
f4769f9bdb7466be65088239c12046d1.eot 20.1 kB [emitted]
448c34a56d699c29117adc64c43affeb.woff2 18 kB [emitted]
fa2772327f55d8198301fdb8bcfc8158.woff 23.4 kB [emitted]
e18bbf611f2a2e43afc071aa2f4e1512.ttf 45.4 kB [emitted]
89889688147bd7575d6327160d64e760.svg 109 kB [emitted]
carte-blanche/user-bundle.js 2.87 MB 0 [emitted] CarteBlanche [0]
main.js 3.19 MB 1 [emitted] main
carte-blanche/index.html 374 bytes [emitted]
carte-blanche/client-bundle.js 1.08 MB [emitted]
carte-blanche/client-bundle.css 5.22 kB [emitted]
[0] multi CarteBlanche [0] 28 bytes {0} [built]
[3] ./src/js/Components CategoryIcon\.js 182 bytes {0} [built]
+ 1472 hidden modules
WARNING in ./~/faker/build/build/faker.js
Critical dependencies:
1:436-443 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./~/faker/build/build/faker.js 1:436-443
I can see the files in /dist/carte-blanche
but when I go to http://localhost:8082/ or http://localhost:8082/carte-blanche/ all I get is Cannot GET /
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Why 3 states' public options are not working as planned
Colorado, Nevada and Washington have passed public health insurance options, but are not yet working out as hoped, Politico reported Dec.
Read more >Continuity Camera: Use iPhone as a webcam for Mac
If Continuity Camera isn't working as expected or your iPhone disconnects from Wi-Fi to optimize Continuity Camera, try these solutions.
Read more >X-Frame-Options - HTTP - MDN Web Docs
The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in...
Read more >Azure Traffic Manager endpoint monitoring | Microsoft Learn
This article can help you understand how Traffic Manager uses endpoint monitoring and automatic endpoint failover to help Azure customers ...
Read more >Setting Clear Expectations for Employees - Business News Daily
Following set policies and procedures when dealing with problems or issues. Just as there are expectations for employee behavior, workers should expect certain ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1, same thing is happening to me too!
Working on this right now …