I'll have a play with that later. Thanks again for all your help.
Doug.
On 25 January 2017 at 16:02, Michael Ellery wrote:
>
> > On Jan 24, 2017, at 11:22 PM, doug livesey wrote:
> >
> > Is there any way that I can make the files webpack compiles
> On Jan 24, 2017, at 11:22 PM, doug livesey wrote:
>
> Is there any way that I can make the files webpack compiles into dependencies
> for the Webpack task? So that any changes to those are picked up for
> recompilation?
> No worries if not, I just thought it would be
Is there any way that I can make the files webpack compiles into
dependencies for the Webpack task? So that any changes to those are picked
up for recompilation?
No worries if not, I just thought it would be nice.
On 25 January 2017 at 07:19, doug livesey wrote:
> Perfect,
Perfect, thankyou so much!
That nailed it!
On 24 January 2017 at 20:52, Michael Ellery wrote:
> The syntax of your add_custom_target is not quite right…I would try
> something more like:
>
> add_custom_target( Webpack ALL
> $WEBPACK
> DEPENDS webpack.config.js
>
The syntax of your add_custom_target is not quite right…I would try something
more like:
add_custom_target( Webpack ALL
$WEBPACK
DEPENDS webpack.config.js
BYPRODUCTS public/bundle.js
)
…that’s untested, of course. I you do that, then I think you don’t need the
Hi -- sorry about the really late reply, I've been away. Up to Hadrian's
Wall, and then for a Dark Skies observatory evening.
It was ace. :)
I've added the following to my CMakeLists.txt file:
> set(WEBPACK ${CMAKE_SOURCE_DIR}/node_modules/.bin/webpack)
> configure_file(webpack.config.js
add_custom_command is the probably the right thing…but it needs to be triggered
by a dependency relationship. You will specify public/bundle.js as the OUTPUT
parameter of the add_custom_command and then some other target or install
command needs to have that file listed in its sources, and then
Hi, I want to call the following command as part of a build:
$ ./node_modules/.bin/webpack
This should generate a file public/bundle.js
I'm really struggling with this. I guess there's something fundamental that
I'm not understanding. `add_custom_command` doesn't seem to be doing
anything.
I